Open alucarddelta opened 3 years ago
another way to use fastapi-jwt-auth, you can change the header name and header type for more information detail you can check in docs
In the same way as I can change the header name and type as described in your docs (a method which does work). Using the Authorization header is somewhat standard.
Is it possible to add a setting to bypass JWTAuth if it detects a header types from a list set by the user. Such as Basic, Digest, Hawk ect?
eg.
authjwt_header_type_bypass = list = ["Basic"]
if re.match(r"{}\s".format(header_type),auth) in header_type_bypass:
return None
for right now it's not possible ā¹ļø, but I think it's a good idea to set header type by list, I will update in the next version š, for right now you can change header type as I said before
This library is very useful, I am a python beginner. I hope this library will get better and better. I would like to ask what is the progress of this proposal. š
I am trying to use credentials from a Basic Auth form to be passed into a script to generate a JWT. However when I call the endpoint I get:
I believe this is because when looking at the
Authorization
header that is generated by the Basic Auth form, it sendsBasic <token>
. When the AuthJWT see's this, it rejects it as it is expectingBearer <token>
and sends a 422 Error code.Is there a way to pass this?