fastapi_login
fastapi_login copied to clipboard
Use a different name for the token in the header
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.