Method: ActionController::HttpAuthentication::Basic#authenticate

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

#authenticate(request, &login_procedure) ⇒ Object



108
109
110
111
112
# File 'lib/action_controller/metal/http_authentication.rb', line 108

def authenticate(request, &)
  if has_basic_credentials?(request)
    .call(*user_name_and_password(request))
  end
end