Merge pull request #2800 from SDA-SE/feat/config-scope-oauth

Auth Provider: make default scopes configurable
This commit is contained in:
Patrik Oldsberg
2020-10-14 17:58:07 +02:00
committed by GitHub
3 changed files with 23 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
---
'@backstage/core': minor
'@backstage/core-api': minor
---
Updated the `GithubAuth.create` method to configure the default scope of the Github Auth Api. As a result the
default scope is configurable when overwriting the Core Api in the app.
```
GithubAuth.create({
discoveryApi,
oauthRequestApi,
defaultScopes: ['read:user', 'repo'],
}),
```