Class: Rack::Auth::AbstractHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/gems/rack-0.9.1/lib/rack/auth/abstract/handler.rb

Overview

Rack::Auth::AbstractHandler implements common authentication functionality.

realm should be set for all handlers.

Direct Known Subclasses

Basic, Digest::MD5, OpenID

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, &authenticator) ⇒ AbstractHandler

Returns a new instance of AbstractHandler.



11
12
13
# File 'lib/gems/rack-0.9.1/lib/rack/auth/abstract/handler.rb', line 11

def initialize(app, &authenticator)
  @app, @authenticator = app, authenticator
end

Instance Attribute Details

#realmObject

Returns the value of attribute realm.



9
10
11
# File 'lib/gems/rack-0.9.1/lib/rack/auth/abstract/handler.rb', line 9

def realm
  @realm
end