use of org.apereo.cas.adaptors.rest.RestAuthenticationHandler in project cas by apereo.
the class CasRestAuthenticationConfiguration method restAuthenticationHandler.
@Bean
public AuthenticationHandler restAuthenticationHandler() {
final RestAuthenticationProperties rest = casProperties.getAuthn().getRest();
final RestAuthenticationHandler r = new RestAuthenticationHandler(rest.getName(), restAuthenticationApi(), servicesManager, restAuthenticationPrincipalFactory());
r.setPasswordEncoder(PasswordEncoderUtils.newPasswordEncoder(rest.getPasswordEncoder()));
return r;
}
Aggregations