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

Add Bearer authentication intercept #544

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

ferrazoli
Copy link
Contributor

Currently, the documentation provides instructions on how to build a bearer token provider, which assumes that tokens are short-lived and must be refreshed after some time. However, some REST APIs offer a bearer token authentication mechanism that relies on the API key/secret instead of short-lived tokens. Since this is a somewhat common use case, and given that we also have an existing implementation for basic auth, I feel like it makes sense to have this implementation offered out of the box too.

Examples:

Currently, the documentation provides instructions on how to build a
bearer token provider, which assumes that tokens are short-lived and
must be refreshed after some time. However, some REST APIs offer a
bearer token authentication mechanism that relies on the API key/secret
instead of short-lived tokens. Since this is a somewhat common use case,
I feel like it makes sense to have this implementation offered out of
the box.
@SentryMan SentryMan requested a review from rbygrave January 12, 2025 02:24
@rbygrave rbygrave added this to the 3.0 milestone Jan 12, 2025
@rbygrave rbygrave merged commit d7e0b40 into avaje:master Jan 12, 2025
6 checks passed
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.

2 participants