elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb
# Creates an OAuth 2.0 authentication request as a URL string
#
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The OpenID Connect authentication realm configuration (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-oidc-prepare-authentication.html
#
Creates an OAuth 2.0 authentication request as a URL string
Creates an OAuth 2 . 0 authentication request as a URL string
def oidc_prepare_authentication(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          arguments = arguments.clone
          headers = arguments.delete(:headers) || {}
          body   = arguments.delete(:body)
          method = Elasticsearch::API::HTTP_POST
          path   = "_security/oidc/prepare"
          params = {}
          Elasticsearch::API::Response.new(
            perform_request(method, path, params, body, headers)
          )
        end
def oidc_prepare_authentication ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] arguments = arguments . clone headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) method = Elasticsearch :: API :: HTTP_POST path = "_security/oidc/prepare" params = { } Elasticsearch :: API :: Response . new ( perform_request ( method , path , params , body , headers ) ) end
Creates an OAuth 2.0 authentication request as a URL string
Creates an OAuth 2 . 0 authentication request as a URL string
arguments
:body The OpenID Connect authentication realm configuration (*Required*)
: body The OpenID Connect authentication realm configuration ( * Required * )
see
None