[[reference-security-saml_prepare_authentication]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.security.samlPrepareAuthentication Prepare SAML authentication. Creates a SAML authentication request (``) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. {ref}/security-api-saml-prepare-authentication.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (SecuritySamlPrepareAuthenticationRequest, options?): Promise ---- [discrete] ===== `SecuritySamlPrepareAuthenticationRequest` [source,ts] ---- interface SecuritySamlPrepareAuthenticationRequest extends <> { acs?: string realm?: string relay_state?: string } ---- [discrete] ===== `SecuritySamlPrepareAuthenticationResponse` [source,ts] ---- interface SecuritySamlPrepareAuthenticationResponse { id: <> realm: string redirect: string } ----