From ef4374bb2ff09d3bbb922c280b7a0bf242188cbc Mon Sep 17 00:00:00 2001 From: UsamaSadiq Date: Tue, 27 Jun 2023 17:23:45 +0500 Subject: [PATCH] fix: attempt to fix coverage check --- edx_rest_framework_extensions/auth/jwt/decoder.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/edx_rest_framework_extensions/auth/jwt/decoder.py b/edx_rest_framework_extensions/auth/jwt/decoder.py index c6c146dd..cdcd4bbe 100644 --- a/edx_rest_framework_extensions/auth/jwt/decoder.py +++ b/edx_rest_framework_extensions/auth/jwt/decoder.py @@ -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,