Sha256: 18f9213ce8050c8f57b2fb3653b80a594ec250af0484508f542ef6a6b55ed1ac

Contents?: true

Size: 628 Bytes

Versions: 1

Compression:

Stored size: 628 Bytes

Contents

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

        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-oauth2-0.0.6 lib/rack/oauth2/server/token/authorization_code.rb