I have a question about the "best practice" of refreshing jwks data.
A customer has an java spring web intranet application with very strict network settings. So, the webserver is not allowed to make requests into the internet.
We must implement a SSO solution with MS Azure. So, we import the well-known openid configuration and import the data from the jwks_uri. Initially this is not a problem. So, the SSO login works - but only till the keys in the jwks_uri changes.
But how should we update the content from the jwks_uri? The server is not allowed to access this internet resource.
As I have understood this, normally we should reload this data on a daily base. The content of the jwks_uri could change.
Is there a best practice for such a setup? Or must I convince the security team to allow the server to access this two Microsoft URLs?
In the configuration of this SSO solution, the administrator fetches the wellknown openid configuration and the content from the jwks_uri and pastes the content to the intranet application admin interface. So, the intranet server knows the public keys from the MS Azure service and can validate the signature of the id_tokens.
But this keys changes from time to time on MS Azure side. So, is there a best practice for this how the intranet application comes to the new public keys? Is there any "magic" I do not know?

