Search in sources :

Example 1 with JcifsSpnegoAuthenticationHandler

use of org.apereo.cas.support.spnego.authentication.handler.support.JcifsSpnegoAuthenticationHandler in project cas by apereo.

the class SpnegoConfiguration method spnegoHandler.

@Bean
@RefreshScope
public AuthenticationHandler spnegoHandler() {
    final SpnegoProperties spnegoProperties = casProperties.getAuthn().getSpnego();
    final JcifsSpnegoAuthenticationHandler h = new JcifsSpnegoAuthenticationHandler(spnegoProperties.getName(), servicesManager, spnegoPrincipalFactory(), spnegoAuthentication(), spnegoProperties.isPrincipalWithDomainName(), spnegoProperties.isNtlmAllowed());
    h.setAuthentication(spnegoAuthentication());
    h.setPrincipalWithDomainName(spnegoProperties.isPrincipalWithDomainName());
    h.setNTLMallowed(spnegoProperties.isNtlmAllowed());
    return h;
}
Also used : JcifsSpnegoAuthenticationHandler(org.apereo.cas.support.spnego.authentication.handler.support.JcifsSpnegoAuthenticationHandler) SpnegoProperties(org.apereo.cas.configuration.model.support.spnego.SpnegoProperties) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

SpnegoProperties (org.apereo.cas.configuration.model.support.spnego.SpnegoProperties)1 JcifsSpnegoAuthenticationHandler (org.apereo.cas.support.spnego.authentication.handler.support.JcifsSpnegoAuthenticationHandler)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