Search in sources :

Example 1 with TicketAndLogoutRequestExtractor

use of org.pac4j.cas.credentials.extractor.TicketAndLogoutRequestExtractor 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<>());
}
Also used : CasAuthenticator(org.pac4j.cas.credentials.authenticator.CasAuthenticator) TicketAndLogoutRequestExtractor(org.pac4j.cas.credentials.extractor.TicketAndLogoutRequestExtractor) QueryParameterCallbackUrlResolver(org.pac4j.core.http.callback.QueryParameterCallbackUrlResolver) CasRedirectActionBuilder(org.pac4j.cas.redirect.CasRedirectActionBuilder)

Aggregations

CasAuthenticator (org.pac4j.cas.credentials.authenticator.CasAuthenticator)1 TicketAndLogoutRequestExtractor (org.pac4j.cas.credentials.extractor.TicketAndLogoutRequestExtractor)1 CasRedirectActionBuilder (org.pac4j.cas.redirect.CasRedirectActionBuilder)1 QueryParameterCallbackUrlResolver (org.pac4j.core.http.callback.QueryParameterCallbackUrlResolver)1