mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-04 15:18:17 +00:00
fix(ui): okta multi tab refresh issue (#21280)
* fix(ui): okta multi tab refresh issue * add missing import * update okta settings to run unlimited refresh * empty commit
This commit is contained in:
parent
dbc0d97b99
commit
ea049643f7
@ -40,16 +40,19 @@ export const OktaAuthProvider: FunctionComponent<Props> = ({
|
|||||||
scopes,
|
scopes,
|
||||||
pkce,
|
pkce,
|
||||||
tokenManager: {
|
tokenManager: {
|
||||||
autoRenew: false,
|
autoRenew: true,
|
||||||
|
storage: 'localStorage',
|
||||||
|
syncStorage: true,
|
||||||
expireEarlySeconds: 60,
|
expireEarlySeconds: 60,
|
||||||
|
secure: true,
|
||||||
},
|
},
|
||||||
cookies: {
|
cookies: {
|
||||||
secure: true,
|
secure: true,
|
||||||
sameSite: 'none',
|
sameSite: 'lax',
|
||||||
},
|
},
|
||||||
services: {
|
services: {
|
||||||
autoRenew: false,
|
autoRenew: true,
|
||||||
renewOnTabActivation: false,
|
renewOnTabActivation: true,
|
||||||
tabInactivityDuration: 3600,
|
tabInactivityDuration: 3600,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
@ -99,7 +102,7 @@ export const OktaAuthProvider: FunctionComponent<Props> = ({
|
|||||||
.catch(async (err) => {
|
.catch(async (err) => {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error(err);
|
console.error(err);
|
||||||
// Redirect to login on error
|
// Redirect to login on error.
|
||||||
await customAuthHandler();
|
await customAuthHandler();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user