jpvanhal / flask-basicauth

HTTP basic access authentication for Flask.
https://flask-basicauth.readthedocs.io/
Other
85 stars 27 forks source link

Remove check of auth.type for compatibility with Quart framework #16

Closed scribu closed 6 years ago

scribu commented 6 years ago

This is a quick fix to make this extension work with Quart, which is an async flavour of Flask.

Unfortunately, auth objects in Quart don't seem to have a .type attribute.

scribu commented 6 years ago

Nevermind, there's a further error in the challenge() method:

TypeError: __init__() missing 1 required positional argument: 'response'