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

Added custom auth token header support #354

Merged
merged 3 commits into from
Apr 5, 2022

Conversation

CodesignDev
Copy link
Contributor

I have a use-case with an application where I need to send an authentication token via a different header instead of using the Authorization header due to the app (being a proxy type application) needing to pass the Authorization header in a different capacity.

This pull request adds the capability to Sanctum to specify a different method of getting the token from the request by setting a callback to the Sanctum object, falling back to using the bearer token if nothing has been set.

@taylorotwell taylorotwell changed the title Addded custom auth token header support Added custom auth token header support Apr 5, 2022
@taylorotwell taylorotwell merged commit cd375fa into laravel:2.x Apr 5, 2022
@CodesignDev CodesignDev deleted the custom_auth_header branch April 6, 2022 11:16
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