Skip to content

Completing support for Bearer tokens which were initially half-supported#309

Merged
mathieucarbou merged 1 commit intomainfrom
auth
Oct 10, 2025
Merged

Completing support for Bearer tokens which were initially half-supported#309
mathieucarbou merged 1 commit intomainfrom
auth

Conversation

@mathieucarbou
Copy link
Member

@mathieucarbou mathieucarbou commented Oct 9, 2025

This PR fixes incomplete Bearer token support in the library.

See discussion: #308

Copy link

@willmmiles willmmiles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK to me - the examples are very helpful. I don't love having _authcFunc delegate back to request->authenticate(), though I would agree that refactoring that is out of scope for this PR. We could consider having setAuthType() take responsibiltiy for assigning _authcFunc for the other auth types to eliminate the switch-case in allowed(), but that's a bit of a micro-optimization at best.

@mathieucarbou mathieucarbou merged commit b18bfeb into main Oct 10, 2025
35 checks passed
@mathieucarbou mathieucarbou deleted the auth branch October 10, 2025 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants