Module: ActionController::HttpAuthentication::Basic::ControllerMethods::ClassMethods
- Defined in:
- actionpack/lib/action_controller/metal/http_authentication.rb
Instance Method Summary collapse
Instance Method Details
#http_basic_authenticate_with(options = {}) ⇒ Object
111 112 113 114 115 116 117 |
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 111 def http_basic_authenticate_with( = {}) before_filter(.except(:name, :password, :realm)) do authenticate_or_request_with_http_basic([:realm] || "Application") do |name, password| name == [:name] && password == [:password] end end end |