Migrating services that use Basic authentication
For Basic authentication, you must change the value of the security constraint's
in the web.xml file. This section assumes that you have already migrated the service's
destination, as described in previous sections.
Flex 1.5 syntax
In Flex 1.5, for WebService and HTTPService, you specified the /flashproxy/service_name as
the
, as the following example shows:
url-pattern
<web-app>
...
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Page</web-resource-name>
<url-pattern>/flashproxy/MyService</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>manager</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<role-name>manager</role-name>
</security-role>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
For RemoteObject, you specified /amfgateway/service_name as the
url-pattern
.
url-pattern
Migrating secure data services
147
Need help?
Do you have a question about the FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 and is the answer not in the manual?
Questions and answers