use of org.pac4j.cas.redirect.CasRedirectActionBuilder in project pac4j by pac4j.
the class CasClient method clientInit.
@Override
protected void clientInit() {
CommonHelper.assertNotNull("configuration", configuration);
configuration.setUrlResolver(this.getUrlResolver());
setCallbackUrlResolver(new QueryParameterCallbackUrlResolver(configuration.getCustomParams()));
defaultRedirectActionBuilder(new CasRedirectActionBuilder(configuration, this));
defaultCredentialsExtractor(new TicketAndLogoutRequestExtractor(configuration));
defaultAuthenticator(new CasAuthenticator(configuration, getName(), getUrlResolver(), getCallbackUrlResolver(), callbackUrl));
defaultLogoutActionBuilder(new CasLogoutActionBuilder<>(configuration.getPrefixUrl() + "logout", configuration.getPostLogoutUrlParameter()));
addAuthorizationGenerator(new DefaultCasAuthorizationGenerator<>());
}
Aggregations