Merge pull request #28892 from benjidotsh/auth/bitbucket-persist
feat(auth): enable persistency of scopes for Bitbucket Cloud
This commit is contained in:
@@ -28,6 +28,7 @@ export const bitbucketAuthenticator = createOAuthAuthenticator({
|
||||
PassportOAuthAuthenticatorHelper.defaultProfileTransform,
|
||||
scopes: {
|
||||
required: ['account'],
|
||||
persist: true,
|
||||
},
|
||||
initialize({ callbackUrl, config }) {
|
||||
const clientID = config.getString('clientId');
|
||||
|
||||
@@ -73,6 +73,7 @@ describe('authModuleBitbucketProvider', () => {
|
||||
expect(decodeOAuthState(startUrl.searchParams.get('state')!)).toEqual({
|
||||
env: 'development',
|
||||
nonce: decodeURIComponent(nonceCookie.value),
|
||||
scope: 'account',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user