Skip to content

Commit

Permalink
UY-1453 fix state in error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ppiernik committed Jun 12, 2024
1 parent 533d078 commit 41aba38
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import com.nimbusds.oauth2.sdk.AuthorizationErrorResponse;
import com.nimbusds.oauth2.sdk.SerializeException;
import com.nimbusds.oauth2.sdk.id.State;
import com.nimbusds.openid.connect.sdk.OIDCError;

import eu.unicore.util.configuration.ConfigurationException;
Expand Down Expand Up @@ -234,7 +235,7 @@ private void returnOAuthError(HttpServletRequest request, HttpServletResponse re
{
OAuthAuthzContext ctx = OAuthSessionService.getContext(request).get();
AuthorizationErrorResponse oauthResponse = new AuthorizationErrorResponse(ctx.getReturnURI(),
OIDCError.LOGIN_REQUIRED, ctx.getRequest().getState(),
OIDCError.LOGIN_REQUIRED, State.parse(request.getParameter("state")),
ctx.getRequest().impliedResponseMode());
try
{
Expand Down

0 comments on commit 41aba38

Please sign in to comment.