class Rack::OAuth2::Server::Token::Extension::Example

Constants

GRANT_TYPE_URN

Public Class Methods

grant_type_for?(grant_type) click to toggle source
# File lib/rack/oauth2/server/token/extension/example.rb, line 10
def grant_type_for?(grant_type)
  grant_type == GRANT_TYPE_URN
end

Public Instance Methods

_call(env) click to toggle source
Calls superclass method Rack::OAuth2::Server::Abstract::Handler#_call
# File lib/rack/oauth2/server/token/extension/example.rb, line 15
def _call(env)
  @request  = Request.new env
  @response = Response.new request
  super
end