auth-backend-module-github-provider: enable persisted scopes

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-09-25 12:10:46 +02:00
parent ed8bd1b3c5
commit 5d32a58b5a
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-auth-backend-module-github-provider': patch
---
Fixed a bug where the GitHub authenticator did not properly persist granted OAuth scopes.
@@ -28,6 +28,7 @@ const ACCESS_TOKEN_PREFIX = 'access-token.';
export const githubAuthenticator = createOAuthAuthenticator({
defaultProfileTransform:
PassportOAuthAuthenticatorHelper.defaultProfileTransform,
shouldPersistScopes: true,
initialize({ callbackUrl, config }) {
const clientId = config.getString('clientId');
const clientSecret = config.getString('clientSecret');