Module Ramaze::Helper::HttpDigest
In: lib/ramaze/helper/httpdigest.rb

Authorization using HTTP Digest.

For custom authorization failure handling add an {httpdigest_failure} method in your controller.

Methods

Constants

SESSION_NONCE = 'httpdigest_authentication_nonce'
SESSION_OPAQUE = 'httpdigest_authentication_opaque'
DIGEST_HEADER = %|Digest realm="%s", qop="auth,auth-int", nonce="%s", opaque="%s"|

Public Instance methods

Set the WWW-Authenticate header and store relevant data in the session.

@param [String] uid @param [String] realm

Delete the nonce and opaque from session to log out.

[Validate]