Skip to content

Commit

Permalink
fix(jans-auth-server): AS complication fails on main #3863 (#3864)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriyz authored Feb 15, 2023
1 parent fe7e24c commit e2aa1a6
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,13 @@ public void checkPermissionGranted() throws IOException {
return;
}

ExternalPostAuthnContext postAuthnContext = new ExternalPostAuthnContext(client, session, (HttpServletRequest) externalContext.getRequest(), (HttpServletResponse) externalContext.getResponse());
AuthzRequest authzRequest = new AuthzRequest();
authzRequest.setHttpRequest((HttpServletRequest) externalContext.getRequest());
authzRequest.setHttpResponse((HttpServletResponse) externalContext.getResponse());
authzRequest.setClient(client);
authzRequest.setSessionId(sessionId);

ExternalPostAuthnContext postAuthnContext = new ExternalPostAuthnContext(client, session, authzRequest, prompts);
final boolean forceAuthorization = externalPostAuthnService.externalForceAuthorization(client, postAuthnContext);

final boolean hasConsentPrompt = prompts.contains(io.jans.as.model.common.Prompt.CONSENT);
Expand Down

0 comments on commit e2aa1a6

Please sign in to comment.