Questo contenuto non è disponibile nella lingua selezionata.
15.7.3. Configure Identity Provider
Procedure 15.1. Configure Identity Provider (IDP)
- Configure the web application security for the IDP Configure a web application as the Identity provider.- Note The use of FORM based web application security is recommended as it gives you the ability to customize the login page.The following is an example of the- web.xmlconfiguration- Example 15.6. - web.xmlConfiguration for IDP- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Create Security Domain for IDP Create a Security Domain with authentication and authorization mechanisms defined for the IDP. Refer to Section 13.9, “Use a Security Domain in Your Application” for further details.
- Configure the IDP Valves Create a- jboss-web.xmlfile in the- WEB-INFdirectory of your IDP web application to configure the valves for the IDP. The following is an example of- jboss-web.xmlfile.- Example 15.7. - jboss-web.xmlFile Configuration for IDP 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. In this configuration file you provide the URL that gets added as the issuer in the outgoing SAML2 assertions to the service providers and the IDP.- Example 15.8. - picketlink.xmlConfiguration- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow By default,- picketlink.xmlis located in the- WEB-INFdirectory of your IDP web 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.9. 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.10. Define Dependency in - META-INF/jboss-deployment-structure.xml- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow