elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb
# Enables authentication as a user and retrieve information about the authenticated user.
#
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html
#
Enables authentication as a user and retrieve information about the authenticated user.
Enables authentication as a user and retrieve information about the authenticated user .
def authenticate(arguments = {})
          arguments = arguments.clone
          headers = arguments.delete(:headers) || {}
          body   = nil
          method = Elasticsearch::API::HTTP_GET
          path   = "_security/_authenticate"
          params = {}
          Elasticsearch::API::Response.new(
            perform_request(method, path, params, body, headers)
          )
        end
def authenticate ( arguments = { } ) arguments = arguments . clone headers = arguments . delete ( :headers ) || { } body = nil method = Elasticsearch :: API :: HTTP_GET path = "_security/_authenticate" params = { } Elasticsearch :: API :: Response . new ( perform_request ( method , path , params , body , headers ) ) end
Enables authentication as a user and retrieve information about the authenticated user.
Enables authentication as a user and retrieve information about the authenticated user .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None