Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
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 theweb.xmlconfigurationExample 15.6.
web.xmlConfiguration for IDPCopy 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 ajboss-web.xmlfile in theWEB-INFdirectory of your IDP web application to configure the valves for the IDP. The following is an example ofjboss-web.xmlfile.Example 15.7.
jboss-web.xmlFile Configuration for IDP ValvesCopy to Clipboard Copied! Toggle word wrap Toggle overflow Configure the PicketLink Configuration File (
picketlink.xml)The following is an example ofpicketlink.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.xmlConfigurationCopy to Clipboard Copied! Toggle word wrap Toggle overflow By default,picketlink.xmlis located in theWEB-INFdirectory of your IDP web application. However, you can configure a custom path to apicketlink.xmlthat is external to the application:Optional: Configuring a custom path to
picketlink.xmlAdd two paramaters to the valve element in your application'sWEB-INF/jboss-web.xml:configFilespecifying for the path topicketlink.xml, andtimerIntervalwhich 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, orjboss-deployment-structure.xml)The web application also requires a dependency defining inMETA-INF/MANIFEST.MForjboss-deployment-structure.xml, so that the PicketLink classes can be located.Example 15.9. Define Dependency in
META-INF/MANIFEST.MFManifest-Version: 1.0 Build-Jdk: 1.6.0_24 Dependencies: org.picketlinkManifest-Version: 1.0 Build-Jdk: 1.6.0_24 Dependencies: org.picketlinkCopy to Clipboard Copied! Toggle word wrap Toggle overflow Example 15.10. Define Dependency in
META-INF/jboss-deployment-structure.xmlCopy to Clipboard Copied! Toggle word wrap Toggle overflow