Skip to content

Commit 2a37483

Browse files
authored
fix(auth)- Fix Redirect url flow in OidcCallback (#11878)
1 parent 3f267af commit 2a37483

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

datahub-frontend/app/auth/sso/oidc/OidcCallbackLogic.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ public Object perform(
130130
CallContext ctx = ctxResult.getFirst();
131131
Result result = (Result) ctxResult.getSecond();
132132

133-
setContextRedirectUrl(ctx);
134-
135133
// Handle OIDC authentication errors.
136134
if (OidcResponseErrorHandler.isError(ctx)) {
137135
return OidcResponseErrorHandler.handleError(ctx);
@@ -192,6 +190,9 @@ private Pair<CallContext, Object> superPerform(
192190
}
193191
}
194192

193+
// Set the redirect url from cookie before creating action
194+
setContextRedirectUrl(ctx);
195+
195196
action = this.redirectToOriginallyRequestedUrl(ctx, defaultUrl);
196197
}
197198
} catch (RuntimeException var20) {

0 commit comments

Comments
 (0)