Class: HaveAPI::Authentication::OAuth2::RevokeEndpoint::Request

Inherits:
Rack::OAuth2::Server::Abstract::Request
  • Object
show all
Defined in:
lib/haveapi/authentication/oauth2/revoke_endpoint.rb

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ Request

Returns a new instance of Request.



16
17
18
19
20
# File 'lib/haveapi/authentication/oauth2/revoke_endpoint.rb', line 16

def initialize(env)
  super
  @token = params['token']
  @token_type_hint = params['token_type_hint']
end

Instance Method Details

#unsupported_token_type!(description = nil, options = {}) ⇒ Object

Raises:

  • (Rack::OAuth2::Server::Abstract::BadRequest)


22
23
24
25
26
27
28
# File 'lib/haveapi/authentication/oauth2/revoke_endpoint.rb', line 22

def unsupported_token_type!(description = nil, options = {})
  raise Rack::OAuth2::Server::Abstract::BadRequest.new(
    :unsupported_token_type,
    description,
    options
  )
end