Describes how to rotate existing credentials in the Auth0 Dashboard.
Auth0 recommends you rotate key material regularly to meet your compliance needs and ensure security is not compromised by leaked private keys. You can use the or to rotate new keys into use. You need to create a new credential, associate it with the private_key_jwt authentication method, and remove old or unused credentials.
The current application storage limit is two credentials at one time. To repeatedly rotate new credentials, you need to delete unused credentials.
Use Auth0 Dashboard
Use Management API
To rotate your application credentials with Auth0 Dashboard:
Remove the unused key from your application. This will permanently delete the credential from storage. You must unassociate the credential from your application or you will not be able to remove it.
To assure zero downtime, you can leave multiple credentials active during rotation. Applications can function normally using older keys until keys are updated. Applications can send signed assertions with any set of active credentials.Auth0 recommends you minimize the time that multiple credentials are in use. The example below uses multiple associated credentials: