nsarno / knock

Seamless JWT authentication for Rails API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Header customization

beto0607 opened this issue · comments

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.

Hello again.

I just override #token_from_request_headers in my ApplicationController.

Here is a screenshot.

image

Thanks.