instance method
request_http_token_authentication
Ruby on Rails 7.0.10
Since v3.0.20Signature
request_http_token_authentication(realm = "Application", message = nil)
Render an HTTP header requesting the client to send a Bearer token for authentication.
Parameters
-
realmopt = "Application" -
messageopt = nil
Source
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 442
def request_http_token_authentication(realm = "Application", message = nil)
Token.authentication_request(self, realm, message)
end
Defined in actionpack/lib/action_controller/metal/http_authentication.rb line 442
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HttpAuthentication::Token::ControllerMethods