Class OidcAuthenticateRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.OidcAuthenticateRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class OidcAuthenticateRequest
extends RequestBase
implements JsonpSerializable
Authenticate OpenID Connect.
Exchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication.
Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients.
- 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<OidcAuthenticateRequest>
Json deserializer forOidcAuthenticateRequest
static final Endpoint<OidcAuthenticateRequest,
OidcAuthenticateResponse, ErrorResponse> Endpoint "security.oidc_authenticate
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
nonce()
Required - Associate a client session with an ID token and mitigate replay attacks.static OidcAuthenticateRequest
final String
realm()
The name of the OpenID Connect realm.final String
Required - The URL to which the OpenID Connect Provider redirected the User Agent in response to an authentication request after a successful authentication.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
final String
state()
Required - Maintain state between the authentication request and the response.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forOidcAuthenticateRequest
-
_ENDPOINT
public static final Endpoint<OidcAuthenticateRequest,OidcAuthenticateResponse, _ENDPOINTErrorResponse> Endpoint "security.oidc_authenticate
".
-
-
Method Details
-
of
public static OidcAuthenticateRequest of(Function<OidcAuthenticateRequest.Builder, ObjectBuilder<OidcAuthenticateRequest>> fn) -
nonce
Required - Associate a client session with an ID token and mitigate replay attacks. This value needs to be the same as the one that was provided to the/_security/oidc/prepare
API or the one that was generated by Elasticsearch and included in the response to that call.API name:
nonce
-
realm
The name of the OpenID Connect realm. This property is useful in cases where multiple realms are defined.API name:
realm
-
redirectUri
Required - The URL to which the OpenID Connect Provider redirected the User Agent in response to an authentication request after a successful authentication. This URL must be provided as-is (URL encoded), taken from the body of the response or as the value of a location header in the response from the OpenID Connect Provider.API name:
redirect_uri
-
state
Required - Maintain state between the authentication request and the response. This value needs to be the same as the one that was provided to the/_security/oidc/prepare
API or the one that was generated by Elasticsearch and included in the response to that call.API name:
state
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupOidcAuthenticateRequestDeserializer
protected static void setupOidcAuthenticateRequestDeserializer(ObjectDeserializer<OidcAuthenticateRequest.Builder> op)
-