Method: ActionController::HttpAuthentication::Basic::ControllerMethods#authenticate_or_request_with_http_basic

Defined in:
lib/action_controller/metal/http_authentication.rb

#authenticate_or_request_with_http_basic(realm = "Application", &login_procedure) ⇒ Object



120
121
122
# File 'lib/action_controller/metal/http_authentication.rb', line 120

def authenticate_or_request_with_http_basic(realm = "Application", &)
  authenticate_with_http_basic(&) || request_http_basic_authentication(realm)
end