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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user