Sha256: d9c428600fec032340d3e88f0106e13d384db4ed97e54e5ce381a8a1ed107550

Contents?: true

Size: 819 Bytes

Versions: 39

Compression:

Stored size: 819 Bytes

Contents

module Rack
  module OAuth2
    module Server
      class Authorize
        class Code < Abstract::Handler
          def call(env)
            @request  = Request.new env
            @response = Response.new request
            super
          end

          class Request < Authorize::Request
            def initialize(env)
              super
              @response_type = :code
              attr_missing!
            end

            def error_params_location
              :query
            end
          end

          class Response < Authorize::Response
            attr_required :code

            def protocol_params
              super.merge(:code => code)
            end

            def protocol_params_location
              :query
            end
          end
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
rack-oauth2-1.1.1 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-1.1.0 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-1.0.10 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-1.0.9 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-1.0.8 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-revibe-1.0.7 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-1.0.7 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-1.0.6 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-1.0.5 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-1.0.4 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-1.0.3 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-1.0.2 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-1.0.1 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-1.0.0 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.14.9 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.14.8 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.14.7 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.14.6 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.14.5 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.14.4 lib/rack/oauth2/server/authorize/code.rb