Keycloak · Arazzo Workflow
Keycloak Rotate a Client Secret
Version 1.0.0
Resolve a client by clientId, capture the outgoing secret, regenerate it, and verify the new value.
View Spec
View on GitHub
AuthenticationAuthorizationIdentity ManagementOpenID ConnectSecuritySSOArazzoWorkflows
Provider
Workflows
rotate-client-secret
Regenerate a confidential client's secret and confirm the new value.
Resolves a client by its clientId, records the current secret, regenerates it, and verifies that the stored secret matches the newly issued value.
1
resolveClient
Exchange the clientId for the internal client UUID. The secret endpoints are keyed on the UUID, and this lookup is the only way to get it.
2
loadClient
Read the client representation to confirm it is confidential before rotating. A public client has no secret to rotate, so this step is the guard that keeps the flow from doing something meaningless.
3
captureOutgoingSecret
Record the secret that is about to be retired, so the operator can tell which value was replaced and confirm the rotation actually changed it.
4
regenerateSecret
Issue a new client secret. This takes effect immediately and invalidates the previous value, so the application configuration must be updated with the new secret before its next token request.
5
verifyRotation
Read the stored secret back and assert it no longer matches the value captured before rotation, proving the new credential is the live one.
Source API Descriptions
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.