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 12 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 28 def bad_request return [ 400, { CONTENT_TYPE => 'text/plain', CONTENT_LENGTH => '0' }, [] ] end