Class BasicAuthenticator
java.lang.Object
org.openmetadata.service.security.auth.BasicAuthenticator
- All Implemented Interfaces:
AuthenticatorHandler
-
Field Summary
Fields inherited from interface org.openmetadata.service.security.auth.AuthenticatorHandler
NOT_IMPLEMENTED_ERROR_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeUserPwdWithOldPwd(javax.ws.rs.core.UriInfo uriInfo, String userName, ChangePasswordRequest request) voidcheckIfLoginBlocked(String userName) voidconfirmEmailRegistration(javax.ws.rs.core.UriInfo uriInfo, String emailToken) createRefreshTokenForLogin(UUID currentUserId) getNewAccessToken(TokenRefreshRequest request) voidinit(OpenMetadataApplicationConfig config) loginUser(LoginRequest loginRequest) lookUserInProvider(String userName) voidrecordFailedLoginAttempt(String providedIdentity, User storedUser) registerUser(RegistrationRequest newRegistrationRequest) voidresendRegistrationToken(javax.ws.rs.core.UriInfo uriInfo, User registeredUser) voidresetUserPasswordWithToken(javax.ws.rs.core.UriInfo uriInfo, PasswordResetRequest request) voidsendEmailVerification(javax.ws.rs.core.UriInfo uriInfo, User user) voidsendInviteMailToUser(javax.ws.rs.core.UriInfo uriInfo, User user, String subject, CreateUser.CreatePasswordType requestType, String pwd) voidsendPasswordResetLink(javax.ws.rs.core.UriInfo uriInfo, User user, String subject, String templateFilePath) validateAndReturnNewRefresh(UUID currentUserId, TokenRefreshRequest tokenRefreshRequest) voidvalidateEmailAlreadyExists(String email) voidvalidatePassword(String providedIdentity, User storedUser, String reqPassword) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openmetadata.service.security.auth.AuthenticatorHandler
getJwtResponse
-
Constructor Details
-
BasicAuthenticator
public BasicAuthenticator()
-
-
Method Details
-
init
- Specified by:
initin interfaceAuthenticatorHandler
-
registerUser
- Specified by:
registerUserin interfaceAuthenticatorHandler
-
confirmEmailRegistration
- Specified by:
confirmEmailRegistrationin interfaceAuthenticatorHandler
-
resendRegistrationToken
public void resendRegistrationToken(javax.ws.rs.core.UriInfo uriInfo, User registeredUser) throws IOException - Specified by:
resendRegistrationTokenin interfaceAuthenticatorHandler- Throws:
IOException
-
sendEmailVerification
- Specified by:
sendEmailVerificationin interfaceAuthenticatorHandler- Throws:
IOException
-
sendPasswordResetLink
public void sendPasswordResetLink(javax.ws.rs.core.UriInfo uriInfo, User user, String subject, String templateFilePath) throws IOException - Specified by:
sendPasswordResetLinkin interfaceAuthenticatorHandler- Throws:
IOException
-
resetUserPasswordWithToken
public void resetUserPasswordWithToken(javax.ws.rs.core.UriInfo uriInfo, PasswordResetRequest request) throws IOException - Specified by:
resetUserPasswordWithTokenin interfaceAuthenticatorHandler- Throws:
IOException
-
changeUserPwdWithOldPwd
public void changeUserPwdWithOldPwd(javax.ws.rs.core.UriInfo uriInfo, String userName, ChangePasswordRequest request) throws IOException - Specified by:
changeUserPwdWithOldPwdin interfaceAuthenticatorHandler- Throws:
IOException
-
sendInviteMailToUser
public void sendInviteMailToUser(javax.ws.rs.core.UriInfo uriInfo, User user, String subject, CreateUser.CreatePasswordType requestType, String pwd) throws IOException - Specified by:
sendInviteMailToUserin interfaceAuthenticatorHandler- Throws:
IOException
-
createRefreshTokenForLogin
- Specified by:
createRefreshTokenForLoginin interfaceAuthenticatorHandler
-
getNewAccessToken
- Specified by:
getNewAccessTokenin interfaceAuthenticatorHandler
-
verifyPasswordResetTokenExpiry
-
validateAndReturnNewRefresh
public RefreshToken validateAndReturnNewRefresh(UUID currentUserId, TokenRefreshRequest tokenRefreshRequest) -
validateEmailAlreadyExists
-
loginUser
public JwtResponse loginUser(LoginRequest loginRequest) throws IOException, freemarker.template.TemplateException - Specified by:
loginUserin interfaceAuthenticatorHandler- Throws:
IOExceptionfreemarker.template.TemplateException
-
checkIfLoginBlocked
- 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
- Specified by:
lookUserInProviderin interfaceAuthenticatorHandler
-