alfred-gitlab icon indicating copy to clipboard operation
alfred-gitlab copied to clipboard

feat: add Headers for api call

Open fuergaosi233 opened this issue 4 years ago • 2 comments

image In the latest Gitlab API interface, you need to bring the Token into the headers to make the call.This solves my 403 problem.

fuergaosi233 avatar Sep 24 '20 20:09 fuergaosi233

@fuergaosi233 Thanks for the PR! Are you able to clarify what you're attempting to solve for here?

I just updated our install to 13.4.1 to test, and auth is still working for me without any code changes. Further, the API docs seem to indicate that query-string based authentication is still supported.

https://docs.gitlab.com/ee/api/#personalproject-access-tokens

I'm certainly not against moving to the header, since it is a better option that I can only assume was perhaps not supported when the workflow was originally written, but would like to understand if there's an issue at play here.

lukewaite avatar Sep 25 '20 02:09 lukewaite

@lukewaite Sorry, I don't konw why it's not work.If I didn't make the change then it won't work, I'm using my company's Gitlab so I don't know its version number.

fuergaosi233 avatar Sep 27 '20 06:09 fuergaosi233