We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using MultiAuth (basic+token) and I'm getting an error when not providing a scheme in the Authorization header.
Authorization
For instance a http :5000/api/ "Authorization: $TK" will throw a 500 error:
http :5000/api/ "Authorization: $TK"
500
scheme, creds = request.headers['Authorization'].split(None, 1) ValueError: need more than 1 value to unpack
Using try-catch to bypass the exception might be one quick solution. Thoughts?
The text was updated successfully, but these errors were encountered:
The scheme field is required, you cannot omit it.
I can address this, but the correct way to do it is by returning a 400 error, since the header missing the scheme is malformed.
Sorry, something went wrong.
Understood. Thanks.
d98d88d
Validate authorization header in multi auth
7a895d6
Fixes #51
miguelgrinberg
No branches or pull requests
Using MultiAuth (basic+token) and I'm getting an error when not providing a scheme in the
Authorization
header.For instance a
http :5000/api/ "Authorization: $TK"
will throw a500
error:Using try-catch to bypass the exception might be one quick solution. Thoughts?
The text was updated successfully, but these errors were encountered: