Skip to content

Commit

Permalink
fix: attempt to fix coverage check
Browse files Browse the repository at this point in the history
UsamaSadiq authored and mumarkhan999 committed Jul 5, 2023
1 parent 704af2f commit 3d6bad0
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
@@ -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,
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit 3d6bad0

Please sign in to comment.