Skip to content

Commit

Permalink
fix(oxauth): re-authentication doesn't happen for authz request with …
Browse files Browse the repository at this point in the history
…the higher "level" acr #1879 (master)
  • Loading branch information
yuriyz committed Dec 1, 2023
1 parent d15735f commit 9e3d147
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ private Response requestAuthorization(
}
}

log.trace("User: {}, prompts: {}", user, prompts);
if (user == null) {
identity.logout();
if (prompts.contains(Prompt.NONE)) {
Expand Down Expand Up @@ -522,7 +523,7 @@ private Response requestAuthorization(
sessionId = null;
prompts.remove(Prompt.LOGIN);

if (sessionUnauthenticated) {
if (sessionUnauthenticated || identity.getSessionId().getState() == SessionIdState.UNAUTHENTICATED) {
return redirectToAuthorizationPage(redirectUriResponse.getRedirectUri(), responseTypes, scope, clientId,
redirectUri, state, responseMode, nonce, display, prompts, maxAge, uiLocales,
idTokenHint, loginHint, acrValues, amrValues, request, requestUri, originHeaders,
Expand Down

0 comments on commit 9e3d147

Please sign in to comment.