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