Class: Rack::Auth::AbstractHandler

Inherits:
Object
  • Object
show all
Defined in:
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, realm = nil, &authenticator) ⇒ AbstractHandler

Returns a new instance of AbstractHandler.



13
14
15
# File 'lib/rack/auth/abstract/handler.rb', line 13

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

Instance Attribute Details

#realmObject

Returns the value of attribute realm.



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

def realm
  @realm
end