core-api: unique storage of saml sessions as well

This commit is contained in:
Patrik Oldsberg
2020-12-17 10:53:31 +01:00
parent 379ed7c14f
commit 34eecc8b41
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);