Seperated write scopes to pass refresh auth session manager checks
Added changeset Delete old changeset file Update .changeset/tired-bats-attend.md with proposed changes Co-authored-by: Fredrik Adelöw <freben@gmail.com> Signed-off-by: Jasper Boeijenga <jboeijenga@gmail.com>
This commit is contained in:
committed by
Fredrik Adelöw
parent
667b951466
commit
998fd151ba
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/integration-react': patch
|
||||
---
|
||||
|
||||
Separated gitlab `write_repository` scope to pass checks in `RefreshingAuthSessionManager`
|
||||
@@ -173,7 +173,7 @@ export class ScmAuth implements ScmAuthApi {
|
||||
const host = options?.host ?? 'gitlab.com';
|
||||
return new ScmAuth('gitlab', gitlabAuthApi, host, {
|
||||
default: ['read_user', 'read_api', 'read_repository'],
|
||||
repoWrite: ['write_repository api'],
|
||||
repoWrite: ['write_repository', 'api'],
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user