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