We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TokenAuth
1 parent 18693c4 commit 42e640eCopy full SHA for 42e640e
uvdat/core/rest/tokenauth.py
@@ -7,6 +7,9 @@
7
8
class TokenAuth(OAuth2Authentication):
9
def authenticate(self, request):
10
+ auth = super().authenticate(request)
11
+ if auth is not None:
12
+ return auth
13
token = request.query_params.get('token')
14
if token is None:
15
token_string = request.headers.get('Authorization')
0 commit comments