From 20b7d78384c65a6bd6bffdfdb35b03dc38c7b91d Mon Sep 17 00:00:00 2001 From: Hayden Fowler Date: Tue, 5 Mar 2024 13:29:37 +1100 Subject: [PATCH] fix: ID-1453 Disabled Passport automatic token refreshing --- packages/passport/sdk/src/authManager.test.ts | 1 + packages/passport/sdk/src/authManager.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/passport/sdk/src/authManager.test.ts b/packages/passport/sdk/src/authManager.test.ts index 25646ba81d..263f990367 100644 --- a/packages/passport/sdk/src/authManager.test.ts +++ b/packages/passport/sdk/src/authManager.test.ts @@ -111,6 +111,7 @@ describe('AuthManager', () => { authority: config.authenticationDomain, client_id: config.oidcConfiguration.clientId, mergeClaims: true, + automaticSilentRenew: false, metadata: { authorization_endpoint: `${config.authenticationDomain}/authorize`, token_endpoint: `${config.authenticationDomain}/oauth/token`, diff --git a/packages/passport/sdk/src/authManager.ts b/packages/passport/sdk/src/authManager.ts index 62ae19f8b0..72b64e820b 100644 --- a/packages/passport/sdk/src/authManager.ts +++ b/packages/passport/sdk/src/authManager.ts @@ -60,6 +60,7 @@ const getAuthConfiguration = (config: PassportConfiguration): UserManagerSetting end_session_endpoint: endSessionEndpoint, }, mergeClaims: true, + automaticSilentRenew: false, // Disabled until https://github.com/authts/oidc-client-ts/issues/430 has been resolved scope: oidcConfiguration.scope, userStore, };