method
authentication_header
v3.2.1 -
Show latest stable
- Class:
ActionController::HttpAuthentication::Digest
authentication_header(controller, realm)public
No documentation available.
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 236
def authentication_header(controller, realm)
secret_key = secret_token(controller.request)
nonce = self.nonce(secret_key)
opaque = opaque(secret_key)
controller.headers["WWW-Authenticate"] = %(Digest realm="#{realm}", qop="auth", algorithm=MD5, nonce="#{nonce}", opaque="#{opaque}")
end