create_client
Creates a new client in Keycloak with configurable settings such as client ID, display name, protocol, access grants, and valid redirect URIs for identity and access management.
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 message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
always_display_in_console | No | ||
authorization_services_enabled | No | ||
bearer_only | No | ||
client_id | Yes | ||
description | No | ||
direct_access_grants_enabled | No | ||
enabled | No | ||
implicit_flow_enabled | No | ||
name | No | ||
protocol | No | openid-connect | |
public_client | No | ||
realm | No | ||
redirect_uris | No | ||
root_url | No | ||
service_accounts_enabled | No | ||
standard_flow_enabled | No | ||
web_origins | No |
Input Schema (JSON Schema)
{
"properties": {
"always_display_in_console": {
"default": false,
"title": "Always Display In Console",
"type": "boolean"
},
"authorization_services_enabled": {
"default": false,
"title": "Authorization Services Enabled",
"type": "boolean"
},
"bearer_only": {
"default": false,
"title": "Bearer Only",
"type": "boolean"
},
"client_id": {
"title": "Client Id",
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Description"
},
"direct_access_grants_enabled": {
"default": false,
"title": "Direct Access Grants Enabled",
"type": "boolean"
},
"enabled": {
"default": true,
"title": "Enabled",
"type": "boolean"
},
"implicit_flow_enabled": {
"default": false,
"title": "Implicit Flow Enabled",
"type": "boolean"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"protocol": {
"default": "openid-connect",
"title": "Protocol",
"type": "string"
},
"public_client": {
"default": false,
"title": "Public Client",
"type": "boolean"
},
"realm": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Realm"
},
"redirect_uris": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Redirect Uris"
},
"root_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Root Url"
},
"service_accounts_enabled": {
"default": false,
"title": "Service Accounts Enabled",
"type": "boolean"
},
"standard_flow_enabled": {
"default": true,
"title": "Standard Flow Enabled",
"type": "boolean"
},
"web_origins": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Web Origins"
}
},
"required": [
"client_id"
],
"title": "create_clientArguments",
"type": "object"
}