Search in sources :

Example 1 with Pac4jDelegatedAuthenticationProperties

use of org.apereo.cas.configuration.model.support.pac4j.Pac4jDelegatedAuthenticationProperties in project cas by apereo.

the class Pac4jAuthenticationEventExecutionPlanConfiguration method clientAuthenticationHandler.

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

Aggregations

Pac4jDelegatedAuthenticationProperties (org.apereo.cas.configuration.model.support.pac4j.Pac4jDelegatedAuthenticationProperties)1 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