Search in sources :

Example 1 with ClientAuthenticationHandler

use of org.apereo.cas.support.pac4j.authentication.handler.support.ClientAuthenticationHandler in project cas by apereo.

the class Pac4jAuthenticationEventExecutionPlanConfiguration method clientAuthenticationHandler.

@RefreshScope
@Bean
public AuthenticationHandler clientAuthenticationHandler() {
    final ClientAuthenticationHandler h = new ClientAuthenticationHandler(casProperties.getAuthn().getPac4j().getName(), servicesManager, clientPrincipalFactory(), builtClients());
    h.setTypedIdUsed(casProperties.getAuthn().getPac4j().isTypedIdUsed());
    return h;
}
Also used : ClientAuthenticationHandler(org.apereo.cas.support.pac4j.authentication.handler.support.ClientAuthenticationHandler) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

ClientAuthenticationHandler (org.apereo.cas.support.pac4j.authentication.handler.support.ClientAuthenticationHandler)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)1 Bean (org.springframework.context.annotation.Bean)1