Create identity provider
keycloak_idp_createCreate a new identity provider in a Keycloak realm with a unique alias and provider type. Optionally configure settings like clientId and authorization URL via key-value pairs.
Instructions
Creates a new identity provider in the target realm. This is a write operation and is not idempotent: calling it again with an existing alias will fail rather than update. Check keycloak_idp_list first to avoid alias collisions, and use keycloak_idp_get afterward to verify the result. Returns a confirmation message naming the created provider.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | Unique alias for the new identity provider within the realm; used as its identifier in later calls (e.g. "google", "corporate-saml"). Must not collide with an existing alias. Required. | |
| config | No | Provider-specific configuration as string key/value pairs (e.g. clientId, clientSecret, authorizationUrl, tokenUrl). Non-string values are ignored. Defaults to an empty object when omitted. | |
| enabled | No | Whether the provider is enabled for use. Defaults to true; pass false to create it in a disabled state. | |
| providerId | Yes | Keycloak provider type that determines the protocol and expected config keys (e.g. "oidc", "saml", "google", "github"). Required. |