BodyRequired
- acs
string The Assertion Consumer Service URL that matches the one of the SAML realms in Elasticsearch. The realm is used to generate the authentication request. You must specify either this parameter or the
realm
parameter. - realm
string The name of the SAML realm in Elasticsearch for which the configuration is used to generate the authentication request. You must specify either this parameter or the
acs
parameter. - relay_state
string A string that will be included in the redirect URL that this API returns as the
RelayState
query parameter. If the Authentication Request is signed, this value is used as part of the signature computation.
POST /_security/saml/prepare
Console
POST /_security/saml/prepare
{
"realm" : "saml1"
}
curl \
--request POST 'http://api.example.com/_security/saml/prepare' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '"{\n \"realm\" : \"saml1\"\n}"'
Request examples
Prepare with a realm
Run `POST /_security/saml/prepare` to generate a SAML authentication request for the SAML realm named `saml1`.
{
"realm" : "saml1"
}
Run `POST /_security/saml/prepare` to generate a SAML authentication request for the SAML realm with an Assertion Consuming Service (ACS) URL.
{
"acs" : "https://kibana.org/api/security/saml/callback"
}
Response examples (200)
A successful response from `POST /_security/saml/prepare`.
{
"redirect": "https://my-idp.org/login?SAMLRequest=fVJdc6IwFP0rmbwDgUKLGbFDtc462%2B06FX3Yl50rBJsKCZsbrPbXL6J22hdfk%2FNx7zl3eL%2BvK7ITBqVWCfVdRolQuS6k2iR0mU2dmN6Phgh1FTQ8be2rehH%2FWoGWdESF%2FPST0NYorgElcgW1QG5zvkh%2FPfHAZbwx2upcV5SkiMLYzmqsFba1MAthdjIXy5enhL5a23DPOyo6W7kGBa7cwhZ2gO7G8OiW%2BR400kORt0bag7fzezAlk24eqcD2OxxlsNN5O3MdsW9c6CZnbq7rntF4d3s0D7BaHTZhIWN52P%2BcjiuGRbDU6cdj%2BEjJbJLQv4N4ADdhxBiEZbQuWclY4Q8iABbCXczCdSiKMAC%2FgyO2YqbQgrIJDZg%2FcFjsMD%2Fzb3gUcBa5sR%2F9oWR%2BzuJBqlPG14Jbn0DIf2TZ3Jn%2FXmSUrC5ddQB6bob37uZrJdeF4dIDHV3iuhb70Ptq83kOz53ubDLXlcwPJK0q%2FT42AqxIaAkVCkqm2tRgr49yfJGFU%2FZQ3hy3QyuUpd7obPv97kb%2FAQ%3D%3D"}",
"realm": "saml1",
"id": "_989a34500a4f5bf0f00d195aa04a7804b4ed42a1"
}