clients/kratos/ruby/lib/ory-kratos-client/api/v0alpha1_api.rb
# Create a Logout URL for Browsers
# This endpoint initializes a browser-based user logout flow and a URL which can be used to log out the user.  This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the &#x60;/self-service/logout/api&#x60; URL directly with the Ory Session Token.  The URL is only valid for the currently signed in user. If no user is signed in, this endpoint returns a 401 error.  When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies.
# @param [Hash] opts the optional parameters
# @option opts [String] :cookie HTTP Cookies  If you call this endpoint from a backend, please include the original Cookie header in the request.
# @return [Array<(SelfServiceLogoutUrl, Integer, Hash)>] SelfServiceLogoutUrl data, response status code and response headers
Create a Logout URL for Browsers
This endpoint initializes a browser-based user logout flow and a URL which can be used to log out the user.  This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the `/self-service/logout/api` URL directly with the Ory Session Token.  The URL is only valid for the currently signed in user. If no user is signed in, this endpoint returns a 401 error.  When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies.
Create a Logout URL for Browsers This endpoint initializes a browser - based user logout flow and a URL which can be used to log out the user . This endpoint is NOT INTENDED for API clients and only works with browsers ( Chrome Firefox ... ) . For API clients you can call the ` / self - service / logout / api ` URL directly with the Ory Session Token . The URL is only valid for the currently signed in user . If no user is signed in this endpoint returns a 401 error . When calling this endpoint from a backend please ensure to properly forward the HTTP cookies .
def create_self_service_logout_flow_url_for_browsers_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: V0alpha1Api.create_self_service_logout_flow_url_for_browsers ...'
      end
      local_var_path = '/self-service/logout/browser'
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params[:'cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type] || 'SelfServiceLogoutUrl'
      auth_names = opts[:debug_auth_names] || []
      new_options = opts.merge(
        :operation => :"V0alpha1Api.create_self_service_logout_flow_url_for_browsers",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: V0alpha1Api#create_self_service_logout_flow_url_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def create_self_service_logout_flow_url_for_browsers_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: V0alpha1Api.create_self_service_logout_flow_url_for_browsers ...' end local_var_path = '/self-service/logout/browser' query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ :' cookie ' ] = opts [ :' cookie ' ] if ! opts [ :' cookie ' ] . nil? form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] || 'SelfServiceLogoutUrl' auth_names = opts [ :debug_auth_names ] || [ ] new_options = opts . merge ( :operation => :" V0alpha1Api.create_self_service_logout_flow_url_for_browsers " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :GET , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: V0alpha1Api#create_self_service_logout_flow_url_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Create a Logout URL for Browsers
This endpoint initializes a browser-based user logout flow and a URL which can be used to log out the user.
Create a Logout URL for Browsers This endpoint initializes a browser - based user logout flow and a URL which can be used to log out the user .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
SelfServiceLogoutUrl data, response status code and response headers
SelfServiceLogoutUrl data response status code and response headers
Array<(SelfServiceLogoutUrl, Integer, Hash)>
opts
:cookie HTTP Cookies If you call this endpoint from a backend, please include the original Cookie header in the request.
: cookie HTTP Cookies If you call this endpoint from a backend please include the original Cookie header in the request .
<not_specific>
opts the optional parameters
opts the optional parameters