From 073e6ccc7ba29e1391865107f105b8069352ee52 Mon Sep 17 00:00:00 2001 From: drbrain Date: Sat, 11 Sep 2010 06:21:51 +0000 Subject: Add documentation for WEBrick's DigestAuth git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/webrick/config.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/webrick/config.rb') diff --git a/lib/webrick/config.rb b/lib/webrick/config.rb index 0fbb67f487..8c6427020d 100644 --- a/lib/webrick/config.rb +++ b/lib/webrick/config.rb @@ -82,6 +82,27 @@ module WEBrick :AutoReloadUserDB => true, } + ## + # Default configuration for WEBrick::HTTPAuth::DigestAuth. + # + # :Algorithm:: MD5, MD5-sess (default), SHA1, SHA1-sess + # :Domain:: An Array of URIs that define the protected space + # :Qop:: 'auth' for authentication, 'auth-int' for integrity protection or + # both + # :UseOpaque:: Should the server send opaque values to the client? This + # helps prevent replay attacks. + # :CheckNc:: Should the server check the nonce count? This helps the + # server detect replay attacks. + # :UseAuthenticationInfoHeader:: Should the server send an + # AuthenticationInfo header? + # :AutoReloadUserDB:: Reload the user database provided by :UserDB + # automatically? + # :NonceExpirePeriod:: How long should we store used nonces? Default is + # 30 minutes. + # :NonceExpireDelta:: How long is a nonce valid? Default is 1 minute + # :InternetExplorerHack:: Hack which allows Internet Explorer to work. + # :OperaHack:: Hack which allows Opera to work. + DigestAuth = { :Algorithm => 'MD5-sess', # or 'MD5' :Domain => nil, # an array includes domain names. -- cgit v1.2.3