
Migrating secure data services 147
Migrating services that use Basic authentication
For Basic authentication, you must change the value of the security constraint’s url-pattern
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
url-pattern, as the following example shows:
<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.
Commenti su questo manuale