이 콘텐츠는 선택한 언어로 제공되지 않습니다.
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.xml
configurationExample 15.6.
web.xml
Configuration 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.xml
file in theWEB-INF
directory of your IDP web application to configure the valves for the IDP. The following is an example ofjboss-web.xml
file.Example 15.7.
jboss-web.xml
File 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.xml
configuration. 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.xml
ConfigurationCopy to Clipboard Copied! Toggle word wrap Toggle overflow By default,picketlink.xml
is located in theWEB-INF
directory of your IDP web application. However, you can configure a custom path to apicketlink.xml
that is external to the application:Optional: Configuring a custom path to
picketlink.xml
Add two paramaters to the valve element in your application'sWEB-INF/jboss-web.xml
:configFile
specifying for the path topicketlink.xml
, andtimerInterval
which 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.MF
orjboss-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