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 SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<OidcPrepareAuthenticationRequest>Json deserializer forOidcPrepareAuthenticationRequeststatic final Endpoint<OidcPrepareAuthenticationRequest,OidcPrepareAuthenticationResponse, ErrorResponse> Endpoint "security.oidc_prepare_authentication".
- 
Method SummaryModifier and TypeMethodDescriptionfinal Stringiss()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 StringIn 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 Stringnonce()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 Stringrealm()The name of the OpenID Connect realm in Elasticsearch the configuration of which should be used in order to generate the authentication request.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupOidcPrepareAuthenticationRequestDeserializer(ObjectDeserializer<OidcPrepareAuthenticationRequest.Builder> op) final Stringstate()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.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forOidcPrepareAuthenticationRequest
- 
_ENDPOINTpublic static final Endpoint<OidcPrepareAuthenticationRequest,OidcPrepareAuthenticationResponse, _ENDPOINTErrorResponse> Endpoint "security.oidc_prepare_authentication".
 
- 
- 
Method Details- 
of
- 
issIn 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
- 
loginHintIn 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
- 
nonceThe 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
- 
realmThe 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
- 
stateThe 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
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupOidcPrepareAuthenticationRequestDeserializerprotected static void setupOidcPrepareAuthenticationRequestDeserializer(ObjectDeserializer<OidcPrepareAuthenticationRequest.Builder> op) 
 
-