lasdf1234 commented on PR #11812:
URL: https://github.com/apache/gravitino/pull/11812#issuecomment-4967688257
Another issue is:
Coluld you modify IdpUserGroupManager?
public IdpUser authenticate(String username, String password) {
try {
IdpUser user = USER_SERVICE.getIdpUser(username);
if (user.passwordHash() == null || !passwordHasher.verify(password,
user.passwordHash())) {
throw new UnauthorizedException("Invalid username or password", ...);
}
return user;
} catch (NotFoundException e) {
throw new UnauthorizedException("Invalid username or password", ...);
}
}
Could you use Exception instead of NotFoundException?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]