The configuration for the Elasticsearch security SAML Identity Provider.
entity_idstringrequired
The Entity ID of the SAML Identity Provider. An Entity ID is a URI with a maximum length of 1024 characters. It can be a URL or a URN and can be found in the configuration or the SAML metadata of the Identity Provider.
metadata_pathstringrequired
The URL to a SAML 2.0 metadata file describing the capabilities and configuration of the Identity Provider
use_single_logoutboolean
Indicates whether to utilise the Identity Provider's Single Logout service
spobjectrequired
The configuration for the Elasticsearch security SAML Service Provider.
entity_idstringrequired
The Entity ID to use for this SAML Service Provider. This should be entered as a URI.
acsstringrequired
The URL of the Assertion Consumer service
logoutstringrequired
The URL of the Single Logout service
attributesobjectrequired
The mapping configuration for the Elasticsearch security SAML attribute.
principalstringrequired
The name of the SAML attribute that contains the user's principal (username). This name should map to a value that does not contain commas or slashes.
groupsstringrequired
The name of the SAML attribute that contains the user's groups
namestring
The name of the SAML attribute that contains the user's full name
mailstring
The name of the SAML attribute that contains the user's email address
dnstring
The name of the SAML attribute that contains the user's X.50 Distinguished Name
nameid_formatstring
The NameID format. If not specified the IdP default is used. Example: 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent'
role_mappingsobject
The mapping ruleset for the Elasticsearch security SAML role.
default_rolesstring[]required
The default roles applied to all users
rulesobject[]required
The role mapping rules to evaluate
typeenumrequired
The type of role mapping rule
Values:usernamegroupsdn
rolesstring[]required
The roles that are applied when the mapping rule is successfully evaluated
valuestringrequired
The value to match when evaluating this rule
enabledboolean
When true, enables the security realm
orderinteger · format: int32
The order that the security realm is evaluated
force_authnboolean
Specifies whether to set the ForceAuthn attribute when requesting that the IdP authenticate the current user. If set to true, the IdP is required to verify the user's identity, irrespective of any existing sessions they might have.
signing_certificate_urlstring
The SAML signing certificate bundle URL. The bundle should be a zip file containing 'signing.key' and 'signing.pem' files in the directory '/saml/:id', where :id is the value of the [id] field.
signing_certificate_url_passwordstring
The password to the signing certificate bundle
signing_saml_messagesstring[]
A list of SAML message types that should be signed. Each element in the list should be the local name of a SAML XML Element. Supported element types are AuthnRequest, LogoutRequest and LogoutResponse. Only valid if a signing certificate is also specified.
encryption_certificate_urlstring
The SAML encryption certificate bundle URL. The bundle should be a zip file containing 'encryption.key' and 'encryption.pem' files in the directory '/saml/:id', where :id is the value of the [id] field.
encryption_certificate_url_passwordstring
The password to the encryption certificate bundle
ssl_certificate_urlstring
The SSL trusted CA certificate bundle URL. The bundle should be a zip file containing a single keystore file 'keystore.ks' Note that all keys should omit the 'xpack.security.authc.realms.saml.{realm_id}' prefix. For example, when the realm ID is set to 'saml1', the advanced configuration 'xpack.security.authc.realms.saml.saml1.ssl.verification_mode: full' should be added as 'ssl.verification_mode: full'.
ssl_certificate_url_truststore_passwordstring
The password to the SSL certificate bundle URL truststore
ssl_certificate_url_truststore_typeenum
The format of the keystore file. Should be jks to use the Java Keystore format or PKCS12 to use PKCS#12 files. The default is jks.
Values:jksPKCS12
override_yamlstring
Advanced configuration options in YAML format. Any settings defined here will override any configuration set via the API. Note that all keys should omit 'xpack.security.authc.realms.{realm_type}.{realm_id}'.
Response headers
x-cloud-resource-versionstring
The resource version, which is used to avoid update conflicts with concurrent operations
x-cloud-resource-createdstring
The date-time when the resource was created (ISO format relative to UTC)
x-cloud-resource-last-modifiedstring
The date-time when the resource was last modified (ISO format relative to UTC)
The realm specified by {realm_id} cannot be found. (code: security_realm.not_found)
application/json
errorsobject[]required
A list of errors that occurred in the failing request
codestringrequired
A structured code representing the error type that occurred
messagestringrequired
A human readable message describing the error that occurred
fieldsstring[]
If the error can be tied to a specific field or fields in the user request, this lists those fields