method
authentication_request
v7.1.3.2 -
Show latest stable
- Class:
ActionController::HttpAuthentication::Token
authentication_request(controller, realm, message = nil)public
Sets a WWW-Authenticate header to let the client know a token is desired.
Returns nothing.
Parameters
-
controller - ActionController::Base instance for the outgoing response.
-
realm - String realm to use in the header.