Class: Rack::Auth::AbstractHandler
- Defined in:
- vendor/bundler/ruby/3.4.0/bundler/gems/rack-40d68f842b5f/lib/rack/auth/abstract/handler.rb
Overview
Rack::Auth::AbstractHandler implements common authentication functionality.
+realm+ should be set for all handlers.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#realm ⇒ Object
Returns the value of attribute realm.
Instance Method Summary collapse
-
#initialize(app, realm = nil, &authenticator) ⇒ AbstractHandler
constructor
A new instance of AbstractHandler.
Constructor Details
#initialize(app, realm = nil, &authenticator) ⇒ AbstractHandler
Returns a new instance of AbstractHandler.
15 16 17 |
# File 'vendor/bundler/ruby/3.4.0/bundler/gems/rack-40d68f842b5f/lib/rack/auth/abstract/handler.rb', line 15 def initialize(app, realm = nil, &authenticator) @app, @realm, @authenticator = app, realm, authenticator end |
Instance Attribute Details
#realm ⇒ Object
Returns the value of attribute realm.
13 14 15 |
# File 'vendor/bundler/ruby/3.4.0/bundler/gems/rack-40d68f842b5f/lib/rack/auth/abstract/handler.rb', line 13 def realm @realm end |