Skip to content

The JWKS endpoint did not return a JSON object when keys are found in the cache #914

@jaferrando

Description

@jaferrando

When the jwks_client.get_jwk_set function finds the keys in the cache, it gets a PyJWKSet object, if not, it performs a fech and gets a JSON object. In both cases it checks if the data is a Dictionary, causing the check to fail when the data was retrieved from the cache.

def get_jwk_set(self, refresh: bool = False) -> PyJWKSet:

The right code would return the object found in the cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions