Closed kpark-hrp closed 8 months ago
@auvipy Is this a reasonable approach?
I might not be available in the next couple of days.
Hey @auvipy, following up. Any opinion on the design?
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
Description
If the
get_signing_key()
method fails to match thekid
, then it tries again after refreshing the JWK set.I would like the option to disable this behavior; therefore, the method simply throws an exception without retry behavior if the
kid
match is not found. https://github.com/jpadilla/pyjwt/blob/50ecae21c3ecf36f7c2a285e4e59dae1d9391e3d/jwt/jwks_client.py#L94-L101Proposed Solution
Update following methods to like this.