Questo contenuto non è disponibile nella lingua selezionata.
15.7.4. Configure Service Provider using HTTP/REDIRECT Binding
Procedure 15.2. Configure Service Provider (SP)
- Configure the Web Application Security For the SP The web application to be configured as a SP should have FORM based security enabled in its- web.xmlfile.- Example 15.11. - web.xmlConfiguration for SP- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Create Security Domain for SP Create a Security Domain that uses- SAML2LoginModule. Here is an example configuration:- <security-domain name="sp" cache-type="default"> <authentication> <login-module code="org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule" flag="required"/> </authentication> </security-domain>- <security-domain name="sp" cache-type="default"> <authentication> <login-module code="org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule" flag="required"/> </authentication> </security-domain>- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Configure the SP Valve To configure the valve for the SP, create a- jboss-web.xmlin the- WEB-INFdirectory of your SP web application.- Example 15.12. - jboss-web.xmlFile Configuration for SP Valves- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Configure the PicketLink Configuration File ( - picketlink.xml)The following is an example of- picketlink.xmlconfiguration for the SP. In this configuration file you provide the URL for the SP and for the IDP, with corresponding handlers for the SP.- Example 15.13. - picketlink.xmlConfiguration- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow By default,- picketlink.xmlis located in the- WEB-INFdirectory of your application. However, you can configure a custom path to a- picketlink.xmlthat is external to the application:- Optional: Configuring a custom path to - picketlink.xmlAdd two paramaters to the valve element in your application's- WEB-INF/jboss-web.xml:- configFilespecifying for the path to- picketlink.xml, and- timerIntervalwhich specifies the interval in milliseconds to reload the configuration. For example:- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
 
- Declare dependencies on PicketLink module ( - META-INF/MANIFEST.MF, or- jboss-deployment-structure.xml)The web application also requires a dependency defining in- META-INF/MANIFEST.MFor- jboss-deployment-structure.xml, so that the PicketLink classes can be located.- Example 15.14. Define Dependency in - META-INF/MANIFEST.MF- Manifest-Version: 1.0 Build-Jdk: 1.6.0_24 Dependencies: org.picketlink- Manifest-Version: 1.0 Build-Jdk: 1.6.0_24 Dependencies: org.picketlink- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - Example 15.15. Define Dependency in - META-INF/jboss-deployment-structure.xml- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow