Class SamlAuthenticateRequest
- All Implemented Interfaces:
JsonpSerializable
Submit a SAML response message to Elasticsearch for consumption.
NOTE: This API is intended for use by custom web applications other than Kibana. If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.
The SAML message that is submitted can be:
- A response to a SAML authentication request that was previously created using the SAML prepare authentication API.
- An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow.
In either case, the SAML message needs to be a base64 encoded XML document
with a root element of <Response>
.
After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SamlAuthenticateRequest>
Json deserializer forSamlAuthenticateRequest
static final Endpoint<SamlAuthenticateRequest,
SamlAuthenticateResponse, ErrorResponse> Endpoint "security.saml_authenticate
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
content()
Required - The SAML response as it was sent by the user's browser, usually a Base64 encoded XML document.ids()
Required - A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user.static SamlAuthenticateRequest
final String
realm()
The name of the realm that should authenticate the SAML response.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forSamlAuthenticateRequest
-
_ENDPOINT
public static final Endpoint<SamlAuthenticateRequest,SamlAuthenticateResponse, _ENDPOINTErrorResponse> Endpoint "security.saml_authenticate
".
-
-
Method Details
-
of
public static SamlAuthenticateRequest of(Function<SamlAuthenticateRequest.Builder, ObjectBuilder<SamlAuthenticateRequest>> fn) -
content
Required - The SAML response as it was sent by the user's browser, usually a Base64 encoded XML document.API name:
content
-
ids
Required - A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user.API name:
ids
-
realm
The name of the realm that should authenticate the SAML response. Useful in cases where many SAML realms are defined.API name:
realm
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupSamlAuthenticateRequestDeserializer
protected static void setupSamlAuthenticateRequestDeserializer(ObjectDeserializer<SamlAuthenticateRequest.Builder> op)
-