Class: HaveAPI::Authentication::OAuth2::RevokeEndpoint::Request
- Inherits:
-
Rack::OAuth2::Server::Abstract::Request
- Object
- Rack::OAuth2::Server::Abstract::Request
- HaveAPI::Authentication::OAuth2::RevokeEndpoint::Request
- Defined in:
- lib/haveapi/authentication/oauth2/revoke_endpoint.rb
Instance Method Summary collapse
-
#initialize(env) ⇒ Request
constructor
A new instance of Request.
- #unsupported_token_type!(description = nil, options = {}) ⇒ Object
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
22 23 24 25 26 27 28 |
# File 'lib/haveapi/authentication/oauth2/revoke_endpoint.rb', line 22 def unsupported_token_type!(description = nil, = {}) raise Rack::OAuth2::Server::Abstract::BadRequest.new( :unsupported_token_type, description, ) end |