Merge pull request #27876 from backstage/blam/auth-scopes

googleAuth: `includeGrantedScopes` to persist scopes across refreshes
This commit is contained in:
Ben Lambert
2024-11-27 13:52:41 +01:00
committed by GitHub
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-auth-backend-module-google-provider': patch
---
Pass through `includeGrantedScopes` in order to persist scopes across refresh calls
@@ -73,6 +73,7 @@ export const googleAuthenticator = createOAuthAuthenticator({
return helper.start(input, {
accessType: 'offline',
prompt: 'consent',
includeGrantedScopes: 'true',
});
},
@@ -67,6 +67,7 @@ describe('authModuleGoogleProvider', () => {
prompt: 'consent',
response_type: 'code',
client_id: 'my-client-id',
include_granted_scopes: 'true',
redirect_uri: `http://localhost:${server.port()}/api/auth/google/handler/frame`,
state: expect.any(String),
scope: