gitlab-ci-pipelines-exporter icon indicating copy to clipboard operation
gitlab-ci-pipelines-exporter copied to clipboard

Cannot use with PRIVATE-TOKEN (Cannot change AuthType)

Open ravindukrs opened this issue 2 years ago • 1 comments

Hi,

My company has an instance running an older version of GitLab. The access token that can be generated in this version is a "Private Access Token". The header for the request is expected to be in the following format: curl --header "PRIVATE-TOKEN: XXXXXXXXXXXXX" "http://gitlab.XXXXXXX.net/api/v4/projects/"

As per my investigation this project currently only allow OAuth bearer tokens which follows following header; curl --header "Authorization: Bearer XXXXXXXXXX" "http://gitlab.XXXXXXX.net/api/v4/projects/" Not sure how we can make this change. Thanks

ravindukrs avatar Jan 12 '23 10:01 ravindukrs

I solved it using nginx proxy

ycyin avatar Nov 02 '23 11:11 ycyin