OpenDroneMap-WebODM/app/api/authentication.py

6 wiersze
232 B
Python

from rest_framework_jwt.authentication import BaseJSONWebTokenAuthentication
class JSONWebTokenAuthenticationQS(BaseJSONWebTokenAuthentication):
def get_jwt_value(self, request):
return request.query_params.get('jwt')