create_client
Create a new OIDC or SAML client in a Keycloak realm with configurable settings including redirect URIs, enabled flows, and client type.
Instructions
Create a new client.
Args:
client_id: Client ID (unique identifier)
name: Display name
description: Client description
enabled: Whether the client is enabled
always_display_in_console: Always display in account console
root_url: Root URL for relative URLs
redirect_uris: Valid redirect URIs
web_origins: Allowed CORS origins
protocol: Protocol (openid-connect or saml)
public_client: Public client (no secret)
bearer_only: Bearer-only client
service_accounts_enabled: Enable service accounts
authorization_services_enabled: Enable authorization services
direct_access_grants_enabled: Enable direct access grants (password flow)
implicit_flow_enabled: Enable implicit flow
standard_flow_enabled: Enable standard flow (authorization code)
realm: Target realm (uses default if not specified)
Returns:
Status messageInput Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client_id | Yes | ||
| name | No | ||
| description | No | ||
| enabled | No | ||
| always_display_in_console | No | ||
| root_url | No | ||
| redirect_uris | No | ||
| web_origins | No | ||
| protocol | No | openid-connect | |
| public_client | No | ||
| bearer_only | No | ||
| service_accounts_enabled | No | ||
| authorization_services_enabled | No | ||
| direct_access_grants_enabled | No | ||
| implicit_flow_enabled | No | ||
| standard_flow_enabled | No | ||
| realm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |