Search in sources :

Example 1 with CasOAuthWrapperApi20

use of org.pac4j.scribe.builder.api.CasOAuthWrapperApi20 in project pac4j by pac4j.

the class CasOAuthWrapperClient method clientInit.

@Override
protected void clientInit() {
    CommonHelper.assertNotBlank("casOAuthUrl", this.casOAuthUrl);
    configuration.setApi(new CasOAuthWrapperApi20(this.casOAuthUrl, this.springSecurityCompliant));
    configuration.setProfileDefinition(new CasOAuthWrapperProfileDefinition());
    if (this.implicitFlow) {
        configuration.setResponseType("token");
    } else {
        configuration.setResponseType("code");
    }
    defaultLogoutActionBuilder(new CasLogoutActionBuilder<>(casLogoutUrl, "service"));
    super.clientInit();
}
Also used : CasOAuthWrapperProfileDefinition(org.pac4j.oauth.profile.casoauthwrapper.CasOAuthWrapperProfileDefinition) CasOAuthWrapperApi20(org.pac4j.scribe.builder.api.CasOAuthWrapperApi20)

Aggregations

CasOAuthWrapperProfileDefinition (org.pac4j.oauth.profile.casoauthwrapper.CasOAuthWrapperProfileDefinition)1 CasOAuthWrapperApi20 (org.pac4j.scribe.builder.api.CasOAuthWrapperApi20)1