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:
self,
::ActiveSupport::Concern
|
|
Defined in: | actionpack/lib/action_controller/metal/http_authentication.rb |
Class Method Summary
::ActiveSupport::Concern
- Extended
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", = nil, &login_procedure) authenticate_with_http_basic(&login_procedure) || request_http_basic_authentication(realm, ) end
#authenticate_with_http_basic(&login_procedure)
[ GitHub ]# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 88
def authenticate_with_http_basic(&login_procedure) HttpAuthentication::Basic.authenticate(request, &login_procedure) 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", = nil) HttpAuthentication::Basic.authentication_request(self, realm, ) end