Skip to content

Commit

Permalink
fix sparql api authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinovg committed Apr 29, 2024
1 parent 1a28685 commit 6b0a2d2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ protected void confirmAuthorization(HttpServletRequest req,
+ "last names and a valid email address.");
}

if (!auth.isCurrentPasswordArgon2(account, password)) {
boolean credentialsProvided = auth.isCurrentPasswordArgon2(account, password);
//Check authorization if user is already authenticated or public access allowed
if (PolicyHelper.isAuthorizedForActions(req, requiredActions)) {
return;
}
if (!credentialsProvided) {
log.debug("Invalid: '" + email + "'/'" + password + "'");
throw new AuthException("email/password combination is not valid");
}
Expand Down

0 comments on commit 6b0a2d2

Please sign in to comment.