fastapi_login icon indicating copy to clipboard operation
fastapi_login copied to clipboard

Use a different name for the token in the header

Open tim-x-y-z opened this issue 11 months ago • 2 comments

Would it be possible to overwrite the name of the token that is expected in the authorization header? i.e look for the token in authorization with the value Token xxx-secret

in particular, i think it might be derived from oauth2 instead of the bearer impl. from fastapi. https://github.com/tiangolo/fastapi/blob/eef1b7d51530be64ddd48e02b5ca46f28a0ebfc1/fastapi/security/oauth2.py#L391

happy to submit a pr if that sounds good.

tim-x-y-z avatar Mar 06 '24 11:03 tim-x-y-z