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