Skip to content

Commit 11a69d7

Browse files
fix(service): set oauth token when using gitlab APIs (#2884)
1 parent 6282b08 commit 11a69d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renku/ui/service/gateways/gitlab_api_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def download_files_from_api(
5858

5959
git_data = GitURL.parse(remote)
6060
try:
61-
gl = gitlab.Gitlab(git_data.instance_url, private_token=token)
61+
gl = gitlab.Gitlab(git_data.instance_url, oauth_token=token)
6262
project = gl.projects.get(f"{git_data.owner}/{git_data.name}")
6363
except gitlab.GitlabAuthenticationError:
6464
# NOTE: Invalid or expired tokens fail even on public projects. Let's give it a try without tokens

0 commit comments

Comments
 (0)