Merge pull request #22468 from Bonial-International-GmbH/mohmann/bitbucket-auth-default-scopes
fix(auth): use default scope `account` for Bitbucket auth
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
---
|
||||
'@backstage/app-defaults': patch
|
||||
'@backstage/core-app-api': patch
|
||||
'@backstage/test-utils': patch
|
||||
---
|
||||
|
||||
Change `defaultScopes` for Bitbucket auth from invalid `team` to `account`.
|
||||
@@ -224,7 +224,7 @@ export const apis = [
|
||||
configApi,
|
||||
discoveryApi,
|
||||
oauthRequestApi,
|
||||
defaultScopes: ['team'],
|
||||
defaultScopes: ['account'],
|
||||
environment: configApi.getOptionalString('auth.environment'),
|
||||
}),
|
||||
}),
|
||||
|
||||
@@ -52,7 +52,7 @@ export default class BitbucketAuth {
|
||||
environment = 'development',
|
||||
provider = DEFAULT_PROVIDER,
|
||||
oauthRequestApi,
|
||||
defaultScopes = ['team'],
|
||||
defaultScopes = ['account'],
|
||||
} = options;
|
||||
|
||||
return OAuth2.create({
|
||||
|
||||
@@ -183,7 +183,7 @@ export const defaultApis = [
|
||||
configApi,
|
||||
discoveryApi,
|
||||
oauthRequestApi,
|
||||
defaultScopes: ['team'],
|
||||
defaultScopes: ['account'],
|
||||
environment: configApi.getOptionalString('auth.environment'),
|
||||
}),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user