odwyersoftware / azure-ad-verify-token

Verify JWT issued by Azure Active Directory B2C in Python 🐍
Other
22 stars 6 forks source link

Cache The jwks signing keys #10

Open sergiopino opened 1 year ago

sergiopino commented 1 year ago

Sometimes we need to provide 2 jwksUri to our backend in order to validate either a MSAL SSo token or a an API Access token generated using client_credentials flow.

This operation is expensive has this is not cached. I will be great to add an option to the library to cache the signing keys for a specific ttl.

With kind regards Sergio

richardARPANET commented 1 year ago

@sergiopino Too busy to implement this at the moment, but PR's (with tests) are welcome