clients/hydra/ruby/lib/ory-hydra-client/api/admin_api.rb
# Reject a Logout Request
# When a user or an application requests ORY Hydra to log out a user, this endpoint is used to deny that logout request. No body is required.  The response is empty as the logout provider has to chose what action to perform next.
# @param logout_challenge [String] 
# @param [Hash] opts the optional parameters
# @option opts [RejectRequest] :body 
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Reject a Logout Request
When a user or an application requests ORY Hydra to log out a user, this endpoint is used to deny that logout request. No body is required.  The response is empty as the logout provider has to chose what action to perform next.
Reject a Logout Request When a user or an application requests ORY Hydra to log out a user this endpoint is used to deny that logout request . No body is required . The response is empty as the logout provider has to chose what action to perform next .
def reject_logout_request_with_http_info(logout_challenge, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: AdminApi.reject_logout_request ...'
      end
      if @api_client.config.client_side_validation && logout_challenge.nil?
        fail ArgumentError, "Missing the required parameter 'logout_challenge' when calling AdminApi.reject_logout_request"
      end
      local_var_path = '/oauth2/auth/requests/logout/reject'
      query_params = opts[:query_params] || {}
      query_params[:'logout_challenge'] = logout_challenge
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
      return_type = opts[:debug_return_type]
      auth_names = opts[:debug_auth_names] || []
      new_options = opts.merge(
        :operation => :"AdminApi.reject_logout_request",
        :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(:PUT, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: AdminApi#reject_logout_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def reject_logout_request_with_http_info ( logout_challenge , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: AdminApi.reject_logout_request ...' end if @api_client . config . client_side_validation && logout_challenge . nil? fail ArgumentError , "Missing the required parameter 'logout_challenge' when calling AdminApi.reject_logout_request" end local_var_path = '/oauth2/auth/requests/logout/reject' query_params = opts [ :query_params ] || { } query_params [ :' logout_challenge ' ] = logout_challenge header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' , 'application/x-www-form-urlencoded' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( opts [ :' body ' ] ) return_type = opts [ :debug_return_type ] auth_names = opts [ :debug_auth_names ] || [ ] new_options = opts . merge ( :operation => :" AdminApi.reject_logout_request " , :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 ( :PUT , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: AdminApi#reject_logout_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Reject a Logout Request
When a user or an application requests ORY Hydra to log out a user, this endpoint is used to deny that logout request.
Reject a Logout Request When a user or an application requests ORY Hydra to log out a user this endpoint is used to deny that logout request .
# verify the required parameter 'logout_challenge' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model) # return_type # auth_names
nil, response status code and response headers
nil response status code and response headers
Array<(nil, Integer, Hash)>
logout_challenge
<not_specific>
opts
None
<not_specific>
None
<not_specific>
opts the optional parameters
opts the optional parameters