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

Adds a simple bearer token authorization wrapper for a client #32

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

Conversation

ivant
Copy link

@ivant ivant commented Feb 9, 2025

This provides support for performing OAuth 2.0 Bearer Token Authorization (RFC 6750) by setting an Authorization header to a fixed token value within the client.

While it is true that it is possible to do that using a MiddleWare, the code becomes much more cumbersome in cases where middleware is not used otherwise. Having a per Client "middleware" rather than per request makes more sense in case of authorization (see for example #22).

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