Pass an empty array to the 'scope' prop required by Atlassian strategy, but which value is not actually used

Signed-off-by: Olivier Liechti <olivier.liechti@wasabi-tech.com>
This commit is contained in:
Olivier Liechti
2024-07-10 11:10:56 +02:00
parent c48f2cc68d
commit 3d9abab684
@@ -50,7 +50,7 @@ export const atlassianAuthenticator = createOAuthAuthenticator({
authorizationURL: `${baseUrl}/authorize`,
tokenURL: `${baseUrl}/oauth/token`,
profileURL: 'https://api.atlassian.com/me',
scope: config.getOptionalString('additionalScopes')?.split(' ') || [],
scope: [], // the Atlassian strategy requires a scope, but Backstage passes the right set of scopes when calling OAuth2Strategy.prototype.authenticate
},
(
accessToken: string,