Skip to content

Commit

Permalink
allow verification skipping (#605)
Browse files Browse the repository at this point in the history
* allow verify

skip verification if VERIFYING_KEY is not set

* Update settings.py

* Update authentication.py

* Update settings.py

* Update authentication.py
  • Loading branch information
domdinicola committed Sep 16, 2022
1 parent 8d0a806 commit 8236a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework_simplejwt/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down

0 comments on commit 8236a13

Please sign in to comment.