Search in sources :

Example 1 with SurrogateRestAuthenticationService

use of org.apereo.cas.authentication.surrogate.SurrogateRestAuthenticationService in project cas by apereo.

the class SurrogateRestAuthenticationConfiguration method surrogateAuthenticationService.

@RefreshScope
@Bean
public SurrogateAuthenticationService surrogateAuthenticationService() {
    final SurrogateAuthenticationProperties su = casProperties.getAuthn().getSurrogate();
    LOGGER.debug("Using REST endpoint [{}] with method [{}] to locate surrogate accounts", su.getRest().getUrl(), su.getRest().getMethod());
    return new SurrogateRestAuthenticationService(su.getRest(), servicesManager);
}
Also used : SurrogateAuthenticationProperties(org.apereo.cas.configuration.model.support.surrogate.SurrogateAuthenticationProperties) SurrogateRestAuthenticationService(org.apereo.cas.authentication.surrogate.SurrogateRestAuthenticationService) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) Bean(org.springframework.context.annotation.Bean)

Aggregations

SurrogateRestAuthenticationService (org.apereo.cas.authentication.surrogate.SurrogateRestAuthenticationService)1 SurrogateAuthenticationProperties (org.apereo.cas.configuration.model.support.surrogate.SurrogateAuthenticationProperties)1 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)1 Bean (org.springframework.context.annotation.Bean)1