lib/rack/oauth2/server/abstract/handler.rb in rack-oauth2-0.2.3 vs lib/rack/oauth2/server/abstract/handler.rb in rack-oauth2-0.3.0.alpha
- old
+ new
@@ -1,13 +1,12 @@
module Rack
module OAuth2
module Server
module Abstract
class Handler
- attr_accessor :realm, :authenticator, :request, :response
+ attr_accessor :authenticator, :request, :response
- def initialize(realm = nil, &authenticator)
- @realm = realm
+ def initialize(&authenticator)
@authenticator = authenticator
end
def call(env)
@authenticator.call(@request, @response) if @authenticator
\ No newline at end of file