fix(saml-auth): Add default option for getBackstageIdentity

Signed-off-by: Joel Low <joel@joelsplace.sg>
This commit is contained in:
Joel Low
2021-02-23 14:09:11 +08:00
parent 07fee9d922
commit b6c4f485d1
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;