Skip to content

realize_headers: use Bearer in the authorization header to support both JWT and regular tokens #277

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

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

Conversation

marijanp
Copy link

According to the docs:
https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api?apiVersion=2022-11-28

One can add either a Bearer or token Authorization header. One should be able to add a regular token as Bearer <token> and it works.

I'm currently implementing some App endpoints and have to create a JWT proving authorization for my App. And make requests using that JWT. By changing the header, I was able to get access. Before I received an Unauthorized status code.

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.

1 participant