Solves for a number of possible inconsistencies with the JWKs endpoint:
If an AuthN server restarts, it should still serve the current keys from its JWKs endpoint.
If multiple AuthN processes are running, a key may be generated by one process but should still be returned from the JWKs endpoint by other processes.
If an AuthN server is not consistently active, it may not generate keys during some interval. It should still remove expired keys from its JWKs endpoint.
This means performing Redis calls when fetching current keys. We still attempt memoization and trimming as appropriate to minimize traffic.
Solves for a number of possible inconsistencies with the JWKs endpoint:
This means performing Redis calls when fetching current keys. We still attempt memoization and trimming as appropriate to minimize traffic.