From cf8db3d57cedc9ae775d59abdc9ab6a91018f20b Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 3 May 2018 17:12:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B2=D0=BE=D0=B4=D0=B8=D1=82=D1=81?= =?UTF-8?q?=D1=8F=20=D0=BF=D0=BE=D0=BD=D1=8F=D1=82=D0=B8=D0=B5=20=D1=80?= =?UTF-8?q?=D0=B5=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D0=B9=20=D0=B8=20=D0=B2?= =?UTF-8?q?=D0=B8=D1=80=D1=82=D1=83=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D0=B9=20?= =?UTF-8?q?=D1=81=D0=B5=D1=81=D1=81=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lms/utils.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lms/utils.py b/lms/utils.py index 9d16680..2331547 100644 --- a/lms/utils.py +++ b/lms/utils.py @@ -17,6 +17,7 @@ def custom_jwt_payload_handler(user): 'exp': datetime.utcnow() + api_settings.JWT_EXPIRATION_DELTA, 'out_key': str(user.out_key), 'email': user.email, + 'real': True, } if api_settings.JWT_ALLOW_REFRESH: @@ -34,13 +35,7 @@ def custom_jwt_payload_handler(user): class JSONWebTokenAuthentication(BaseJSONWebTokenAuthentication): - """ - Clients should authenticate by passing the token key in the "Authorization" - HTTP header, prepended with the string specified in the setting - `JWT_AUTH_HEADER_PREFIX`. For example: - Authorization: JWT eyJhbGciOiAiSFMyNTYiLCAidHlwIj - """ www_authenticate_realm = 'api' def get_jwt_value(self, request):