use of org.apereo.cas.authentication.MongoDbAuthenticationHandler in project cas by apereo.
the class CasMongoAuthenticationConfiguration method mongoAuthenticationHandler.
@Bean
@RefreshScope
public AuthenticationHandler mongoAuthenticationHandler() {
final MongoAuthenticationProperties mongo = casProperties.getAuthn().getMongo();
final MongoDbAuthenticationHandler handler = new MongoDbAuthenticationHandler(mongo.getName(), servicesManager, mongoPrincipalFactory());
handler.setAuthenticator(mongoAuthenticatorProfileService());
handler.setPrincipalNameTransformer(PrincipalNameTransformerUtils.newPrincipalNameTransformer(mongo.getPrincipalTransformation()));
return handler;
}
Aggregations