clients/hydra/ruby/lib/ory-hydra-client/api/public_api.rb
# Revoke OAuth2 Tokens
# Revoking a token (both access and refresh) means that the tokens will be invalid. A revoked access token can no longer be used to make access requests, and a revoked refresh token can no longer be used to refresh an access token. Revoking a refresh token also invalidates the access token that was created with it. A token may only be revoked by the client the token was generated for.
# @param token [String] 
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Revoke OAuth2 Tokens
Revoking a token (both access and refresh) means that the tokens will be invalid. A revoked access token can no longer be used to make access requests, and a revoked refresh token can no longer be used to refresh an access token. Revoking a refresh token also invalidates the access token that was created with it. A token may only be revoked by the client the token was generated for.
Revoke OAuth2 Tokens Revoking a token ( both access and refresh ) means that the tokens will be invalid . A revoked access token can no longer be used to make access requests and a revoked refresh token can no longer be used to refresh an access token . Revoking a refresh token also invalidates the access token that was created with it . A token may only be revoked by the client the token was generated for .
def revoke_o_auth2_token_with_http_info(token, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: PublicApi.revoke_o_auth2_token ...'
      end
      if @api_client.config.client_side_validation && token.nil?
        fail ArgumentError, "Missing the required parameter 'token' when calling PublicApi.revoke_o_auth2_token"
      end
      local_var_path = '/oauth2/revoke'
      query_params = opts[:query_params] || {}
      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/x-www-form-urlencoded'])
      form_params = opts[:form_params] || {}
      form_params['token'] = token
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type]
      auth_names = opts[:debug_auth_names] || ['basic', 'oauth2']
      new_options = opts.merge(
        :operation => :"PublicApi.revoke_o_auth2_token",
        :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(:POST, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: PublicApi#revoke_o_auth2_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def revoke_o_auth2_token_with_http_info ( token , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: PublicApi.revoke_o_auth2_token ...' end if @api_client . config . client_side_validation && token . nil? fail ArgumentError , "Missing the required parameter 'token' when calling PublicApi.revoke_o_auth2_token" end local_var_path = '/oauth2/revoke' query_params = opts [ :query_params ] || { } 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/x-www-form-urlencoded' ] ) form_params = opts [ :form_params ] || { } form_params [ 'token' ] = token post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] auth_names = opts [ :debug_auth_names ] || [ 'basic' , 'oauth2' ] new_options = opts . merge ( :operation => :" PublicApi.revoke_o_auth2_token " , :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 ( :POST , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: PublicApi#revoke_o_auth2_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Revoke OAuth2 Tokens
Revoking a token (both access and refresh) means that the tokens will be invalid.
Revoke OAuth2 Tokens Revoking a token ( both access and refresh ) means that the tokens will be invalid .
# verify the required parameter 'token' 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)>
token
<not_specific>
opts
<not_specific>
<not_specific>
None
<not_specific>
opts the optional parameters
opts the optional parameters