mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-16 12:38:13 +00:00
fix(auth)- Fix Redirect url flow in OidcCallback (#11878)
This commit is contained in:
parent
3f267afc97
commit
2a37483b49
@ -130,8 +130,6 @@ public class OidcCallbackLogic extends DefaultCallbackLogic {
|
||||
CallContext ctx = ctxResult.getFirst();
|
||||
Result result = (Result) ctxResult.getSecond();
|
||||
|
||||
setContextRedirectUrl(ctx);
|
||||
|
||||
// Handle OIDC authentication errors.
|
||||
if (OidcResponseErrorHandler.isError(ctx)) {
|
||||
return OidcResponseErrorHandler.handleError(ctx);
|
||||
@ -192,6 +190,9 @@ public class OidcCallbackLogic extends DefaultCallbackLogic {
|
||||
}
|
||||
}
|
||||
|
||||
// Set the redirect url from cookie before creating action
|
||||
setContextRedirectUrl(ctx);
|
||||
|
||||
action = this.redirectToOriginallyRequestedUrl(ctx, defaultUrl);
|
||||
}
|
||||
} catch (RuntimeException var20) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user