Skip to content

Commit

Permalink
fix: attempt to fix coverage check
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq authored and mumarkhan999 committed Jun 27, 2023
1 parent 77826c9 commit 665c5f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion edx_rest_framework_extensions/auth/jwt/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,14 @@ def _verify_jwt_signature(token, jwt_issuer, decode_symmetric_token):


def verify_jwk_signature_using_keyset(token, key_set, aud=None, iss=None, verify_signature=True, verify_exp=True):

"""
Verifies the JWS using the provided keyset.
It loops through the available keys in the keyset
to find that if there is any key which can be used to verify
the signature.
The audience and issuer arguments will be verified if they are passed
while calling the method.
"""
options = {
'verify_signature': verify_signature,
'verify_exp': verify_exp,
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ deps =
drf312: djangorestframework>=3.12,<3.13
drflatest: djangorestframework
commands =
python -Wd coverage -m pytest {posargs}
python -m pytest --cov {posargs}
coverage report

[testenv:quality]
Expand Down

0 comments on commit 665c5f9

Please sign in to comment.