Skip to content

Commit 42e640e

Browse files
committed
fix: accept default token auth with new TokenAuth class
1 parent 18693c4 commit 42e640e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

uvdat/core/rest/tokenauth.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
class TokenAuth(OAuth2Authentication):
99
def authenticate(self, request):
10+
auth = super().authenticate(request)
11+
if auth is not None:
12+
return auth
1013
token = request.query_params.get('token')
1114
if token is None:
1215
token_string = request.headers.get('Authorization')

0 commit comments

Comments
 (0)