Class LdapAuthenticator
- java.lang.Object
-
- org.openmetadata.service.security.auth.LdapAuthenticator
-
- All Implemented Interfaces:
AuthenticatorHandler
public class LdapAuthenticator extends Object implements AuthenticatorHandler
-
-
Constructor Summary
Constructors Constructor Description LdapAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckIfLoginBlocked(String email)RefreshTokencreateRefreshTokenForLogin(UUID currentUserId)voidinit(OpenMetadataApplicationConfig config, org.jdbi.v3.core.Jdbi jdbi)JwtResponseloginUser(LoginRequest loginRequest)UserlookUserInProvider(String email)voidrecordFailedLoginAttempt(String providedIdentity, User storedUser)voidvalidatePassword(String providedIdentity, User storedUser, String reqPassword)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openmetadata.service.security.auth.AuthenticatorHandler
changeUserPwdWithOldPwd, confirmEmailRegistration, getJwtResponse, getNewAccessToken, registerUser, resendRegistrationToken, resetUserPasswordWithToken, sendEmailVerification, sendInviteMailToUser, sendPasswordResetLink
-
-
-
-
Method Detail
-
init
public void init(OpenMetadataApplicationConfig config, org.jdbi.v3.core.Jdbi jdbi)
- Specified by:
initin interfaceAuthenticatorHandler
-
loginUser
public JwtResponse loginUser(LoginRequest loginRequest) throws IOException, freemarker.template.TemplateException
- Specified by:
loginUserin interfaceAuthenticatorHandler- Throws:
IOExceptionfreemarker.template.TemplateException
-
checkIfLoginBlocked
public void checkIfLoginBlocked(String email)
- Specified by:
checkIfLoginBlockedin interfaceAuthenticatorHandler
-
recordFailedLoginAttempt
public void recordFailedLoginAttempt(String providedIdentity, User storedUser) throws freemarker.template.TemplateException, IOException
- Specified by:
recordFailedLoginAttemptin interfaceAuthenticatorHandler- Throws:
freemarker.template.TemplateExceptionIOException
-
validatePassword
public void validatePassword(String providedIdentity, User storedUser, String reqPassword) throws freemarker.template.TemplateException, IOException
- Specified by:
validatePasswordin interfaceAuthenticatorHandler- Throws:
freemarker.template.TemplateExceptionIOException
-
lookUserInProvider
public User lookUserInProvider(String email)
- Specified by:
lookUserInProviderin interfaceAuthenticatorHandler
-
createRefreshTokenForLogin
public RefreshToken createRefreshTokenForLogin(UUID currentUserId)
- Specified by:
createRefreshTokenForLoginin interfaceAuthenticatorHandler
-
-