From 8236a13916fe410161033f44b53b920be86b89f7 Mon Sep 17 00:00:00 2001 From: Domenico Date: Fri, 16 Sep 2022 00:55:45 -0500 Subject: [PATCH] allow verification skipping (#605) * allow verify skip verification if VERIFYING_KEY is not set * Update settings.py * Update authentication.py * Update settings.py * Update authentication.py --- rest_framework_simplejwt/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework_simplejwt/authentication.py b/rest_framework_simplejwt/authentication.py index 15767cddd..fd26bdb06 100644 --- a/rest_framework_simplejwt/authentication.py +++ b/rest_framework_simplejwt/authentication.py @@ -89,7 +89,7 @@ def get_validated_token(self, raw_token): messages = [] for AuthToken in api_settings.AUTH_TOKEN_CLASSES: try: - return AuthToken(raw_token) + return AuthToken(raw_token, api_settings.VERIFYING_KEY is not None) except TokenError as e: messages.append( {