Skip to content

Commit 673cd57

Browse files
committed
UY-1453 revert state fixes
1 parent 41aba38 commit 673cd57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

oauth/src/main/java/pl/edu/icm/unity/oauth/as/webauthz/OAuthAuthzWebEndpoint.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,12 @@ public void doFilter(HttpServletRequest request, HttpServletResponse response) t
233233

234234
private void returnOAuthError(HttpServletRequest request, HttpServletResponse response) throws IOException
235235
{
236+
String sessionId = request.getSession().getId();
237+
log.debug(sessionId);
238+
236239
OAuthAuthzContext ctx = OAuthSessionService.getContext(request).get();
237240
AuthorizationErrorResponse oauthResponse = new AuthorizationErrorResponse(ctx.getReturnURI(),
238-
OIDCError.LOGIN_REQUIRED, State.parse(request.getParameter("state")),
241+
OIDCError.LOGIN_REQUIRED, ctx.getRequest().getState(),
239242
ctx.getRequest().impliedResponseMode());
240243
try
241244
{

0 commit comments

Comments
 (0)