Sha256: 193ab478932add47f7df66e55d4e36cec951e4f80d626fa57738b8e116a16af6

Contents?: true

Size: 475 Bytes

Versions: 4

Compression:

Stored size: 475 Bytes

Contents

require 'rack/auth/abstract/handler'

module Rack
  module OAuth2
    module Server
      module Abstract
        class Handler < Rack::Auth::AbstractHandler
          attr_accessor :request, :response

          def call(env)
            @authenticator.call(@request, @response) if @authenticator
            env['rack.oauth2.request'] = @request
            env['rack.oauth2.response'] = @response
            @response
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rack-oauth2-0.0.3 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.0.2 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.0.1 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.0.0 lib/rack/oauth2/server/abstract/handler.rb