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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user