Skip to content

Commit

Permalink
fix(jans-auth-server): wrong Client Authn Method at token endpoint th…
Browse files Browse the repository at this point in the history
…rows npe #3503 (#3598)
  • Loading branch information
yuriyz authored Jan 11, 2023
1 parent df07a71 commit e3bd1e8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,18 @@ public void permissionGranted(HttpServletRequest httpRequest, final SessionId se
try {
final User user = sessionIdService.getUser(session);
if (user == null) {
log.debug("Permission denied. Failed to find session user: userDn = " + session.getUserDn() + ".");
log.debug("Permission denied. Failed to find session user: userDn = {}", session.getUserDn());
permissionDenied(session);
return;
}

String clientId = session.getSessionAttributes().get(AuthorizeRequestParam.CLIENT_ID);
final Client client = clientService.getClient(clientId);
if (client == null) {
log.debug("Permission denied. Failed to find client by id: {}", clientId);
permissionDenied(session);
return;
}

String scope = session.getSessionAttributes().get(AuthorizeRequestParam.SCOPE);
String responseType = session.getSessionAttributes().get(AuthorizeRequestParam.RESPONSE_TYPE);
Expand Down

0 comments on commit e3bd1e8

Please sign in to comment.