module Rack module OAuth2 module Server class Token class AuthorizationCode < Abstract::Handler def call(env) @request = Request.new(env) @response = Response.new(request) super end class Request < Token::Request attr_accessor :code def initialize(env) super @grant_type = 'authorization_code' @code = params['code'] end def required_params super + [:code] end end class Response < Token::Response end end end end end end