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
demandé il y a un an685 vues
1 réponse
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
EXPERT
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions