Now support Bearer auth in complement of JWT

This commit is contained in:
Eliot Berriot 2018-04-26 15:17:51 +02:00
parent 2477aa31f9
commit d2c2fb837e
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 38 additions and 3 deletions

View file

@ -29,9 +29,6 @@ class TokenHeaderAuth(BaseJSONWebTokenAuthentication):
class TokenAuthMiddleware:
"""
Custom middleware (insecure) that takes user IDs from the query string.
"""
def __init__(self, inner):
# Store the ASGI application we were passed