123456789_123456789_123456789_123456789_123456789_

Module: ActionController::HttpAuthentication::Basic::ControllerMethods

Relationships & Source Files
Namespace Children
Modules:
Extension / Inclusion / Inheritance Descendants
Included In:
::ActionController::Base, ::ActionView::TestCase::TestController, Rails::ApplicationController, Rails::InfoController, Rails::MailersController, Rails::WelcomeController
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Defined in: actionpack/lib/action_controller/metal/http_authentication.rb

Class Method Summary

Instance Method Summary

Instance Method Details

#authenticate_or_request_with_http_basic(realm = "Application", message = nil, &login_procedure)

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 84

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

#authenticate_with_http_basic(&login_procedure)

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 88

def authenticate_with_http_basic(&)
  HttpAuthentication::Basic.authenticate(request, &)
end

#request_http_basic_authentication(realm = "Application", message = nil)

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 92

def request_http_basic_authentication(realm = "Application", message = nil)
  HttpAuthentication::Basic.authentication_request(self, realm, message)
end