Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Commit

Permalink
Set allowed algorithms when decoding
Browse files Browse the repository at this point in the history
Note: This feature is new in PyJWT v1.0.0.
  • Loading branch information
jpadilla committed Mar 18, 2015
1 parent 062bcdc commit 57c63a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rest_framework_jwt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def jwt_decode_handler(token):
verify_expiration=api_settings.JWT_VERIFY_EXPIRATION,
leeway=api_settings.JWT_LEEWAY,
audience=api_settings.JWT_AUDIENCE,
issuer=api_settings.JWT_ISSUER
issuer=api_settings.JWT_ISSUER,
algorithms=[api_settings.JWT_ALGORITHM]
)


Expand Down

0 comments on commit 57c63a5

Please sign in to comment.