MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manuale Utente Pagina 147

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 184
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 146
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.
Vedere la pagina 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 183 184

Commenti su questo manuale

Nessun commento