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

Merged
merged 1 commit into from
Aug 1, 2024
Merged

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

merged 1 commit into from
Aug 1, 2024

Conversation

floscher
Copy link
Contributor

@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 #7172 where apparently login with Github was broken by this line: #7172 (comment)
See also: #5844 (comment)
@martinjagodic martinjagodic merged commit 029e11d into decaporg:main Aug 1, 2024
11 checks passed
@floscher floscher deleted the api-authorization-bearer branch August 2, 2024 07:52
martinjagodic pushed a commit that referenced this pull request Aug 5, 2024
…Bearer" (#7242)

The authorization type "Bearer" is more widely recognized than "token". E.g. Gitlab requires that you use "Bearer".
This should fix #7172 where apparently login with Github was broken by this line: #7172 (comment)
See also: #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