Add current and defaultScopes when refreshing session

Otherwise google auth always fails, as it lacks userinfo.profile

Signed-off-by: Tomasz Szuba <tszuba@box.com>
This commit is contained in:
Tomasz Szuba
2023-10-18 14:06:23 +02:00
parent b606fe62a6
commit 89d13e5618
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-app-api': patch
---
Add current and default scopes when refreshing session
@@ -137,7 +137,9 @@ export class RefreshingAuthSessionManager<T> implements SessionManager<T> {
return this.refreshPromise;
}
this.refreshPromise = this.connector.refreshSession(scopes);
this.refreshPromise = this.connector.refreshSession(
this.helper.getExtendedScope(this.currentSession, scopes),
);
try {
const session = await this.refreshPromise;