Sorry if my initial question wasn't clear...
My question actually wasn't about caching the keys themselves (which I do not plan to cache for now), but instead was about the URL that's used for retrieving the JSON Web Key Set (the value of the "jwks_uri" property from OIDC discovery). And when I talk about caching, I really mean storing the URL in my application's backend database. I just want to see if that URL is something that could change, or will remain the same (barring a particular Cerner customer changing their authentication system)
It just seems like there are a lot of extra HTTPS calls that are required in order to validate the OIDC ID Token. Do I really need to make the call to the ".well-known/openid-configuration" endpoint every single time a user logs in, just to fetch the jwks_uri value, or can I save that value and reuse it on subsequent user logins, to reduce the number of HTTP calls during the ID token verification process?
Thanks!
Justin