Regenerate Client Secret
Generate a new client secret for an OAuth client.
This will:
- Invalidate the current secret immediately
- Generate a new secure secret
- Return the new secret (only once!)
Active tokens remain valid but cannot be refreshed with old secret.
Authentication
AuthorizationBearer
Bearer token authentication using JWT tokens from Ory Kratos/Hydra
Path parameters
oauth_client_id
org_id
The unique identifier of the organization.
project_id
The unique identifier of the project.
Request
This endpoint expects an object.
redirect_uris
Updated list of authorized redirect URIs.
All existing URIs will be replaced with this list.
grant_types
Updated list of enabled grant types.
All existing grant types will be replaced with this list.
token_endpoint_auth_method
Updated authentication method for the token endpoint.
pkce_required
Whether to require PKCE for authorization code flows. IMPORTANT: Only applicable when ‘authorization_code’ is included in grant_types. Setting to True enhances security, especially for public clients.
pkce_challenge_method
PKCE code challenge method.
Only applies when PKCE is required.
Response
New secret generated
client_secret
Generated client secret. IMPORTANT: This is the only time the secret will be shown. Store it securely.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error
