Skip to content

Commit

Permalink
fix: readonly auth
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentC35 committed Oct 5, 2023
1 parent 767478e commit 5b4e56e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/auth/provider/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ export function AuthProvider({ children }) {
}
alreadyLoad.current = true;
if (isOidcEnabled) {
const extras = isReadOnlyMode ? { idpHint: IDENTITY_PROVIDER } : null;

console.log('extras', extras);
setConfiguration({
...oidcConf,
redirect_uri: `${window.location.origin}/login`,
token_request_extras: isReadOnlyMode
? { idpHint: IDENTITY_PROVIDER }
: null,
extras: extras,
token_request_extras: extras,
token_renew_mode: TokenRenewMode.access_token_invalid,
refresh_time_before_tokens_expiration_in_second: 40,
});
Expand Down

0 comments on commit 5b4e56e

Please sign in to comment.