Method: ActionController::HttpAuthentication::Basic#authenticate

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

#authenticate(request, &login_procedure) ⇒ Object



92
93
94
95
96
# File 'lib/action_controller/metal/http_authentication.rb', line 92

def authenticate(request, &)
  unless request.authorization.blank?
    .call(*user_name_and_password(request))
  end
end