diff --git a/.changeset/sour-badgers-cry.md b/.changeset/sour-badgers-cry.md index cd5aaf7afb..901294bf03 100644 --- a/.changeset/sour-badgers-cry.md +++ b/.changeset/sour-badgers-cry.md @@ -2,4 +2,4 @@ '@backstage/core-api': patch --- -GitHub Auth Api uses provider.id to build storage key name. +Use auth provider ID to create unique session storage keys for GitHub and SAML Auth. diff --git a/packages/core-api/src/apis/implementations/auth/saml/SamlAuth.ts b/packages/core-api/src/apis/implementations/auth/saml/SamlAuth.ts index da5f082c9b..e05f6266d6 100644 --- a/packages/core-api/src/apis/implementations/auth/saml/SamlAuth.ts +++ b/packages/core-api/src/apis/implementations/auth/saml/SamlAuth.ts @@ -63,7 +63,7 @@ class SamlAuth implements ProfileInfoApi, BackstageIdentityApi, SessionApi { const authSessionStore = new AuthSessionStore({ manager: sessionManager, - storageKey: 'samlSession', + storageKey: `${provider.id}Session`, }); return new SamlAuth(authSessionStore);