instance method
authentication_header
Ruby on Rails 3.1.12
Since v2.3.18Signature
authentication_header(controller, realm)
No documentation comment.
Parameters
-
controllerreq -
realmreq
Source
# 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
Defined in actionpack/lib/action_controller/metal/http_authentication.rb line 236
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HttpAuthentication::Digest