Rotate the signing key of OAuth credentials
Switches the OAuth credentials to their successor key and generates a new successor, for credentials using private_key_jwt. Takes no body. The new signing key is one your authorization server already holds, since the successor is published from the start, so the switch causes no outage.
The key replaced is no longer used to sign, but stays in the published set for 30 days and is then deleted. Rotating again within those 30 days is allowed: each key rotated out keeps its own 30 days, and any of them can be revoked by kid. The credentials can hold at most 5 keys in their signing algorithm at once, counting the active key, its successor and those rotated out; at that limit, revoke a rotated-out key (the error names the oldest) and rotate again. To stop trusting a key at once — after a leak — use revoke_key instead.
Returns the kid of the key rotated out. The public keys are at the jwksUri of the credentials: fetch them again, or register the new successor with your authorization server, before the next rotation.
Endpoint Permissions: Owner, Admin, Non-Signing Admin.
Headers
Path Parameters
Response
The key was rotated; the kid of the key rotated out
The key that was rotated out. It stays published at the jwksUri of the credentials for 30 days. Fetch the JWKS from there for the current public keys.