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-0.14.3 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.14.2 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.14.1 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.14.0 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.13.0 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.12.2 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.12.1 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.12.0 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.11.0 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.10.1 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.10.0 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.10.0.alpha lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.9.5 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.9.4 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.9.3 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.9.2 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.9.1 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.9.0 lib/rack/oauth2/server/authorize/code.rb
rack-oauth2-0.9.0.alpha lib/rack/oauth2/server/authorize/code.rb