lib/rack/oauth2/server/abstract/handler.rb in rack-oauth2-0.0.4 vs lib/rack/oauth2/server/abstract/handler.rb in rack-oauth2-0.0.5
- old
+ new
@@ -1,15 +1,14 @@
-require 'rack/auth/abstract/handler'
-
module Rack
module OAuth2
module Server
module Abstract
- class Handler < Rack::Auth::AbstractHandler
- attr_accessor :request, :response
+ class Handler
+ attr_accessor :realm, :authenticator, :request, :response
def initialize(realm = '', &authenticator)
- super(nil, realm, &authenticator)
+ @realm = realm
+ @authenticator = authenticator
end
def call(env)
@authenticator.call(@request, @response) if @authenticator
env['rack.oauth2.request'] = @request
\ No newline at end of file