method

authentication_request

authentication_request(controller, realm, message = nil)
public

Sets a WWW-Authenticate header to let the client know a token is desired.

controller - ActionController::Base instance for the outgoing response. realm - String realm to use in the header.

Returns nothing.