dusterio / lumen-passport

Making Laravel Passport work with Lumen
MIT License
654 stars 141 forks source link

How can I change Authorization header to my custom header? #35

Closed dasun4u closed 7 years ago

dasun4u commented 7 years ago

I need to change Authorization header to my custom Authorization header called X-OAuth-Authorization. can I do that? Because I want to use Authorization header for my middleware authentications. What should I do?

dusterio commented 7 years ago

There is a Laravel Passport guard, I think it's called TokenGuard. You just need to extend/change it to your needs and use your new guard instead of default auth:api guard