Source: show | on GitHub
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 389 389: def authenticate_or_request_with_http_token(realm = "Application", &login_procedure) 390: authenticate_with_http_token(&login_procedure) || request_http_token_authentication(realm) 391: end
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 393 393: def authenticate_with_http_token(&login_procedure) 394: Token.authenticate(self, &login_procedure) 395: end
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 397 397: def request_http_token_authentication(realm = "Application") 398: Token.authentication_request(self, realm) 399: end