Merge pull request #3762 from backstage/rugvip/saml

core-api: unique storage of saml sessions as well
This commit is contained in:
Ben Lambert
2020-12-17 11:11:44 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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.
@@ -63,7 +63,7 @@ class SamlAuth implements ProfileInfoApi, BackstageIdentityApi, SessionApi {
const authSessionStore = new AuthSessionStore<SamlSession>({
manager: sessionManager,
storageKey: 'samlSession',
storageKey: `${provider.id}Session`,
});
return new SamlAuth(authSessionStore);