core-api: unique storage of saml sessions as well
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user