use of org.pac4j.saml.redirect.SAML2RedirectActionBuilder in project pac4j by pac4j.
the class SAML2Client method clientInit.
@Override
protected void clientInit() {
CommonHelper.assertNotNull("configuration", this.configuration);
// First of all, initialize the configuration. It may dynamically load some properties, if it is not a static one.
this.configuration.init(getName());
initCredentialProvider();
initDecrypter();
initSignatureSigningParametersProvider();
final MetadataResolver metadataManager = initChainingMetadataResolver(initIdentityProviderMetadataResolver(), initServiceProviderMetadataResolver());
initSAMLContextProvider(metadataManager);
initSignatureTrustEngineProvider(metadataManager);
initSAMLResponseValidator();
initSAMLProfileHandler();
defaultRedirectActionBuilder(new SAML2RedirectActionBuilder(this));
defaultCredentialsExtractor(ctx -> {
final SAML2MessageContext samlContext = this.contextProvider.buildContext(ctx);
final SAML2Credentials credentials = (SAML2Credentials) this.profileHandler.receive(samlContext);
return credentials;
});
defaultAuthenticator(new SAML2Authenticator());
defaultLogoutActionBuilder(new SAML2LogoutActionBuilder<>(this));
}
Aggregations