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:
Fredrik Adelöw
2024-01-25 11:32:51 +01:00
committed by GitHub
4 changed files with 10 additions and 3 deletions
+7
View File
@@ -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`.
+1 -1
View File
@@ -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'),
}),
}),