Merge pull request #4650 from lowjoel/fix-saml-backstage-identity-default

fix(saml-auth): Add default option for getBackstageIdentity
This commit is contained in:
Fredrik Adelöw
2021-02-23 10:23:57 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-api': patch
---
Fix error when querying Backstage Identity with SAML authentication
@@ -83,7 +83,7 @@ class SamlAuth implements ProfileInfoApi, BackstageIdentityApi, SessionApi {
}
async getBackstageIdentity(
options: AuthRequestOptions,
options: AuthRequestOptions = {},
): Promise<BackstageIdentity | undefined> {
const session = await this.sessionManager.getSession(options);
return session?.backstageIdentity;