mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-26 09:26:22 +00:00
fix(sso) - Add redirect_uri to authenticate route on 401 error (#8346)
This commit is contained in:
parent
564d8a3760
commit
2ca7f566f8
@ -48,7 +48,8 @@ const errorLink = onError((error) => {
|
||||
if (serverError.statusCode === 401) {
|
||||
isLoggedInVar(false);
|
||||
Cookies.remove(GlobalCfg.CLIENT_AUTH_COOKIE);
|
||||
window.location.replace(PageRoutes.AUTHENTICATE);
|
||||
const currentPath = window.location.pathname + window.location.search;
|
||||
window.location.replace(`${PageRoutes.AUTHENTICATE}?redirect_uri=${encodeURIComponent(currentPath)}`);
|
||||
}
|
||||
}
|
||||
if (graphQLErrors && graphQLErrors.length) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user