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();
}
Aggregations