此内容没有您所选择的语言版本。
5.6.4. Configure Service Provider
The Service Provider (SP) can be a JBoss EAP server instance.
Procedure 5.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.xml file.Example 5.9. web.xml Configuration for SP
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure the SP Valve
To configure the valve for the SP, create acontext.xml
in the WEB-INF directory of your SP web application.Example 5.10. context.xml File Configuration for IDP Valves
<Context> <Valve className="org.jboss.identity.federation.bindings.tomcat.sp.SPRedirectSignatureFormAuthenticator" /> </Context>
<Context> <Valve className="org.jboss.identity.federation.bindings.tomcat.sp.SPRedirectSignatureFormAuthenticator" /> </Context>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure the PicketLink Federation configuration file (picketlink-idfed.xml)
Configurepicketlink-idfed.xml
in WEB-INF of your IDP web application. 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. The following is an example ofpicketlink-idfed.xml
configuration.Example 5.11. picketlink-idfed.xml Configuration
<PicketLinkIDP xmlns="urn:picketlink:identity-federation:config:1.0" > <IdentityURL>http://localhost:8080/idp/</IdentityURL> </PicketLinkIDP
<PicketLinkIDP xmlns="urn:picketlink:identity-federation:config:1.0" > <IdentityURL>http://localhost:8080/idp/</IdentityURL> </PicketLinkIDP
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure the PicketLink Federation Handlers file (
picketlink-handlers.xml
)Configurepicketlink-handlers.xml
in WEB-INF of your SP web application.Example 5.12. Configure picketlink-handlers.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
Retain the order in which the handlers are listed.