Class OidcPrepareAuthenticationRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.OidcPrepareAuthenticationRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class OidcPrepareAuthenticationRequest
extends RequestBase
implements JsonpSerializable
Prepare OpenID connect authentication.
Create an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch.
The response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process.
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<OidcPrepareAuthenticationRequest>
Json deserializer forOidcPrepareAuthenticationRequest
static final Endpoint<OidcPrepareAuthenticationRequest,
OidcPrepareAuthenticationResponse, ErrorResponse> Endpoint "security.oidc_prepare_authentication
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
iss()
In the case of a third party initiated single sign on, this is the issuer identifier for the OP that the RP is to send the authentication request to.final String
In the case of a third party initiated single sign on, it is a string value that is included in the authentication request as the login_hint parameter.final String
nonce()
The value used to associate a client session with an ID token and to mitigate replay attacks.of
(Function<OidcPrepareAuthenticationRequest.Builder, ObjectBuilder<OidcPrepareAuthenticationRequest>> fn) final String
realm()
The name of the OpenID Connect realm in Elasticsearch the configuration of which should be used in order to generate the authentication request.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
setupOidcPrepareAuthenticationRequestDeserializer
(ObjectDeserializer<OidcPrepareAuthenticationRequest.Builder> op) final String
state()
The value used to maintain state between the authentication request and the response, typically used as a Cross-Site Request Forgery mitigation.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forOidcPrepareAuthenticationRequest
-
_ENDPOINT
public static final Endpoint<OidcPrepareAuthenticationRequest,OidcPrepareAuthenticationResponse, _ENDPOINTErrorResponse> Endpoint "security.oidc_prepare_authentication
".
-
-
Method Details
-
of
-
iss
In the case of a third party initiated single sign on, this is the issuer identifier for the OP that the RP is to send the authentication request to. It cannot be specified when realm is specified. One of realm or iss is required.API name:
iss
-
loginHint
In the case of a third party initiated single sign on, it is a string value that is included in the authentication request as the login_hint parameter. This parameter is not valid when realm is specified.API name:
login_hint
-
nonce
The value used to associate a client session with an ID token and to mitigate replay attacks. If the caller of the API does not provide a value, Elasticsearch will generate one with sufficient entropy and return it in the response.API name:
nonce
-
realm
The name of the OpenID Connect realm in Elasticsearch the configuration of which should be used in order to generate the authentication request. It cannot be specified when iss is specified. One of realm or iss is required.API name:
realm
-
state
The value used to maintain state between the authentication request and the response, typically used as a Cross-Site Request Forgery mitigation. If the caller of the API does not provide a value, Elasticsearch will generate one with sufficient entropy and return it in the response.API name:
state
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupOidcPrepareAuthenticationRequestDeserializer
protected static void setupOidcPrepareAuthenticationRequestDeserializer(ObjectDeserializer<OidcPrepareAuthenticationRequest.Builder> op)
-