Search in sources :

Example 1 with AuthenticationResult

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();
}
Also used : BasicAuthInfo(password.pwm.util.BasicAuthInfo) AuthenticationResult(password.pwm.ldap.auth.AuthenticationResult)

Aggregations

AuthenticationResult (password.pwm.ldap.auth.AuthenticationResult)1 BasicAuthInfo (password.pwm.util.BasicAuthInfo)1