class Rack::Auth::AbstractHandler
Rack::Auth::AbstractHandler implements common authentication functionality.
realm
should be set for all handlers.
Attributes
realm[RW]
Public Class Methods
new(app, realm=nil, &authenticator)
click to toggle source
# File lib/rack/auth/abstract/handler.rb, line 11 def initialize(app, realm=nil, &authenticator) @app, @realm, @authenticator = app, realm, authenticator end
Private Instance Methods
bad_request()
click to toggle source
# File lib/rack/auth/abstract/handler.rb, line 27 def bad_request return [ 400, { 'Content-Type' => 'text/plain', 'Content-Length' => '0' }, [] ] end