auth-backend-module-github-provider: enable persisted scopes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user