Get an identity provider
const url = 'http://localhost:8000/clusters/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/realms/customer-portal/identity-providers/google-workspace';
const options = {
method: 'GET',
headers: {'API-Version': '2026-06-01.beta', 'API-Key': '<API-Key>'}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}curl --request GET \
--url http://localhost:8000/clusters/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/realms/customer-portal/identity-providers/google-workspace \
--header 'API-Key: <API-Key>' \
--header 'API-Version: 2026-06-01.beta'Required scope: identity-providers:read
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Keycloak realm name (not ID). Must start with a letter; allows letters, digits, and hyphens.
Example
customer-portalKeycloak identity provider alias. Used as the stable resource identifier in this API and in Keycloak login flows.
Example
google-workspaceHeader Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”The request has succeeded.
An identity provider (social login, enterprise SSO, or directory federation) configured in a Keycloak realm.
object
Keycloak alias. Stable resource identifier for this API. For providers created via Skycloak this is always a SkycloakProviderId value; for externally managed providers it may be any valid alias string.
Protocol of the identity provider.
Client identifier used to authenticate with the external provider. Not a secret.
Protocol-specific configuration and shared display options. Populate only the sub-object that matches type.
object
OIDC-specific endpoints. Required when type is oidc.
object
OIDC issuer identifier URL. Use POST /identity-providers/discover-oidc to fetch endpoints from the issuer automatically.
Authorization endpoint. Derived from discovery when issuer is supplied.
Token endpoint. Derived from discovery when issuer is supplied.
UserInfo endpoint.
End-session (logout) endpoint.
SAML-specific settings. Required when type is saml.
object
SAML entity ID of the external identity provider.
SAML Single Sign-On service URL.
URL to the IdP’s SAML metadata document. Takes precedence over metadata_xml.
Raw SAML metadata XML. Used when the IdP does not publish a metadata URL.
LDAP-specific settings. Required when type is ldap.
object
LDAP server URL including scheme and port.
Base Distinguished Name used as the search root.
Bind DN used to authenticate against the directory.
URL to the logo displayed on the login button.
Label of the SSO login button shown to end users.
Keycloak attribute name → IdP claim name mappings applied when importing user profiles.
object
When true, Keycloak trusts email addresses provided by this IdP without sending a verification email. Enable only for providers that verify email addresses themselves.
When true, this provider was created or last modified directly in the Keycloak Admin Console. Skycloak reflects its configuration but PATCH and DELETE will return 403 Forbidden.
Example
{
"provider_id": "google-workspace",
"type": "oidc",
"config": {
"oidc": {
"issuer": "https://accounts.google.com",
"authorization_url": "https://accounts.google.com/o/oauth2/v2/auth",
"token_url": "https://oauth2.googleapis.com/token",
"userinfo_url": "https://openidconnect.googleapis.com/v1/userinfo"
},
"saml": {
"entity_id": "https://idp.example.com/entity",
"sso_url": "https://idp.example.com/sso/saml"
},
"ldap": {
"server_url": "ldaps://ldap.example.com:636",
"base_dn": "dc=example,dc=com",
"bind_dn": "cn=skycloak-svc,ou=service-accounts,dc=example,dc=com"
},
"button_text": "Continue with Okta",
"attribute_mappings": {
"email": "email",
"firstName": "given_name",
"lastName": "family_name"
},
"sync_mode": "import"
}
}Access is unauthorized.
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}The server cannot find the requested resource.
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Client error
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Headers
Section titled “Headers”Server error
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Server error
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}