clients/hydra/ruby/lib/ory-hydra-client/api/admin_api.rb
# Invalidates All Login Sessions of a Certain User Invalidates a Subject&#39;s Authentication Session
# This endpoint invalidates a subject&#39;s authentication session. After revoking the authentication session, the subject has to re-authenticate at ORY Hydra. This endpoint does not invalidate any tokens and does not work with OpenID Connect Front- or Back-channel logout.
# @param subject [String] 
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Invalidates All Login Sessions of a Certain User Invalidates a Subject's Authentication Session
This endpoint invalidates a subject's authentication session. After revoking the authentication session, the subject has to re-authenticate at ORY Hydra. This endpoint does not invalidate any tokens and does not work with OpenID Connect Front- or Back-channel logout.
Invalidates All Login Sessions of a Certain User Invalidates a Subject ' s Authentication Session This endpoint invalidates a subject ' s authentication session . After revoking the authentication session the subject has to re - authenticate at ORY Hydra . This endpoint does not invalidate any tokens and does not work with OpenID Connect Front - or Back - channel logout .
def revoke_authentication_session_with_http_info(subject, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: AdminApi.revoke_authentication_session ...'
      end
      if @api_client.config.client_side_validation && subject.nil?
        fail ArgumentError, "Missing the required parameter 'subject' when calling AdminApi.revoke_authentication_session"
      end
      local_var_path = '/oauth2/auth/sessions/login'
      query_params = opts[:query_params] || {}
      query_params[:'subject'] = subject
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type]
      auth_names = opts[:debug_auth_names] || []
      new_options = opts.merge(
        :operation => :"AdminApi.revoke_authentication_session",
        :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(:DELETE, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: AdminApi#revoke_authentication_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def revoke_authentication_session_with_http_info ( subject , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: AdminApi.revoke_authentication_session ...' end if @api_client . config . client_side_validation && subject . nil? fail ArgumentError , "Missing the required parameter 'subject' when calling AdminApi.revoke_authentication_session" end local_var_path = '/oauth2/auth/sessions/login' query_params = opts [ :query_params ] || { } query_params [ :' subject ' ] = subject header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] auth_names = opts [ :debug_auth_names ] || [ ] new_options = opts . merge ( :operation => :" AdminApi.revoke_authentication_session " , :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 ( :DELETE , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: AdminApi#revoke_authentication_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Invalidates All Login Sessions of a Certain User Invalidates a Subject&#39;s Authentication Session
This endpoint invalidates a subject&#39;s authentication session.
Invalidates All Login Sessions of a Certain User Invalidates a Subject&#39 ; s Authentication Session This endpoint invalidates a subject&#39 ; s authentication session .
# verify the required parameter 'subject' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # 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)>
subject
<not_specific>
opts
<not_specific>
<not_specific>
None
<not_specific>
opts the optional parameters
opts the optional parameters