nsarno / knock

Seamless JWT authentication for Rails API
MIT License
2.07k stars 253 forks source link

Header customization #236

Closed beto0607 closed 5 years ago

beto0607 commented 5 years ago

Hello.

Is there any way for customize where the token will be in the request?

I need to send the token in a header called "X-QA-Key". But Knock only checks "Auhorization".

Thank you.

beto0607 commented 5 years ago

Hello again.

I just override #token_from_request_headers in my ApplicationController.

Here is a screenshot.

image

Thanks.