Skip to content

Commit b3a0333

Browse files
authored
Fix oath gl token (#2765)
Signed-off-by: Dominika Zemanovicova <dzemanov@redhat.com>
1 parent 0fda0c7 commit b3a0333

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-bulk-import-backend': patch
3+
---
4+
5+
Fixed GitLab OAuth flow for on behalf of the signed-in user

workspaces/bulk-import/plugins/bulk-import-backend/src/gitlab/utils/glUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function buildGitlab(
4242
): InstanceType<typeof Gitlab<false>> {
4343
const apiThing = new Gitlab({
4444
host: baseUrl,
45-
token: input.credential.token,
45+
oauthToken: input.credential.token,
4646
});
4747
return apiThing;
4848
}

0 commit comments

Comments
 (0)