Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix login with Gitlab (change API Authorization header "token" → "Bearer") #7242

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

floscher
Copy link

@floscher floscher commented Jun 29, 2024

The authorization type "Bearer" is more widely recognized than "token". E.g. Gitlab requires that you use "Bearer".

Github mentions that it accepts both "token" and "Bearer": https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api?apiVersion=2022-11-28#about-authentication

Gitlab seems to require the use of "Bearer", which was apparently the cause of #7172: #7172 (comment) (thanks to @b-xb for digging into this)

See also: #5844 (comment)

Fixes #7172.

Summary

Gitlab login is broken in current versions: #7172

Test plan

Checklist

A picture of a cute animal (not mandatory but encouraged)

…Bearer"

The authorization type "Bearer" is more widely recognized than "token". E.g. Gitlab requires that you use "Bearer".
This should fix decaporg#7172 where apparently login with Github was broken by this line: decaporg#7172 (comment)
See also: decaporg#5844 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

404 After Logging into Decap
2 participants