use of password.pwm.ldap.auth.AuthenticationResult in project pwm by pwm-project.
the class RestAuthenticationProcessor method authenticateUser.
private ChaiProvider authenticateUser(final UserIdentity userIdentity) throws PwmUnrecoverableException {
final BasicAuthInfo basicAuthInfo = BasicAuthInfo.parseAuthHeader(pwmApplication, httpServletRequest);
final AuthenticationResult authenticationResult = SimpleLdapAuthenticator.authenticateUser(pwmApplication, sessionLabel, userIdentity, basicAuthInfo.getPassword());
return authenticationResult.getUserProvider();
}
Aggregations