MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Bedienungsanleitung Seite 149

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 184
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 148
Migrating secure data services 149
Flex 1.5 syntax
In Flex 1.5, you specified the type of authentication and the role in the named service
definition in the flex-config.xml file:
<named>
<object name="myobj">
<use-custom-authentication>true</use-custom-authentication>
<roles>
<role>sampleusers</role>
</roles>
</object>
</named>
Flex 2 syntax
In Flex 2, you define the security constraint in the services-config.xml file:
<service-config>
<services>
... // Destinations are defined here.
</services>
<security>
<security-constraint id="sample-users">
<auth-method>Custom</auth-method>
<roles>
<role>sampleusers</role>
</roles>
</security-constraint>
</security>
</service-config>
You then refer to that security constraint in your destination definition, which is also in the
services-config.xml file or a file that it includes by reference:
<destination>
...
<security>
<security-constraint ref="sample-users"/>
</security>
</destination>
Seitenansicht 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 183 184

Kommentare zu diesen Handbüchern

Keine Kommentare