AWS Cognito keys rotation frequency

0

I am using Cognito JWKS URI https://cognito-idp.<Region>.amazonaws.com/<userPoolId>/.well-known/jwks.json to get public keys. In this service, it is a simple passthrough of the data from this URL to the client.

I want to add a cache there. In the documentation, it is stated that keys are sometimes rotated but I cannot find any information on how often this happens.

Is there any more conclusive information on how often these keys are rotated?

Anna
gefragt vor einem Jahr684 Aufrufe
1 Antwort
0

I don't think that is documented anywhere. We used Cognito for years and can't remember them ever being rotated. I would say it's safe to cache for at least 24hours or even more. But it's very hard to say.

profile picture
EXPERTE
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen