BTBurke / caddy-jwt

JWT middleware for the Caddy server
MIT License
113 stars 40 forks source link

Support for other Authorization header formats #46

Closed icb- closed 5 years ago

icb- commented 5 years ago

I would like to be able to use this for Apple PassKit passes, which means checking the Authorization header for a ApplePass <token> instead of Bearer <token>. Can we relax the check for Bearer to allow any string, or a configurable one?

BTBurke commented 5 years ago

Sure, but I don't have time to implement this. If you know go, I'll accept a pull request. Basically how it should work is that it should build on the directive token_source header directive and be something like token_source header applepass.