Sha256: 653798b607dd45841943627787f28da043099806e5651256657aa0dc50f43610

Contents?: true

Size: 420 Bytes

Versions: 81

Compression:

Stored size: 420 Bytes

Contents

module Rack
  module OAuth2
    module Server
      module Abstract
        class Handler
          attr_accessor :authenticator, :request, :response

          def initialize(&authenticator)
            @authenticator = authenticator
          end

          def call(env)
            @authenticator.call(@request, @response) if @authenticator
            @response
          end
        end
      end
    end
  end
end

Version data entries

81 entries across 81 versions & 2 rubygems

Version Path
rack-oauth2-0.10.0.alpha lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.9.5 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.9.4 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.9.3 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.9.2 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.9.1 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.9.0 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.9.0.alpha lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.8.7 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.8.6 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.8.5 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.8.4 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.8.3 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.8.2 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.8.1 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.8.0 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.8.0.alpha lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.7.0 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.6.9 lib/rack/oauth2/server/abstract/handler.rb
rack-oauth2-0.6.8 lib/rack/oauth2/server/abstract/handler.rb