Module: HTTPAuth
- Defined in:
- lib/httpauth/constants.rb,
lib/httpauth/basic.rb,
lib/httpauth/digest.rb,
lib/httpauth/exceptions.rb
Overview
HTTPAuth holds a number of classes and constants to implement HTTP Authentication with. See Basic or Digest for details on how to implement authentication using this library.
For more information see RFC 2617 (www.ietf.org/rfc/rfc2617.txt)
Defined Under Namespace
Modules: Digest Classes: Basic, UnsupportedError, UnwellformedHeader, ValidationError
Constant Summary collapse
- VERSION =
'0.2'
- CREDENTIAL_HEADERS =
%w{REDIRECT_X_HTTP_AUTHORIZATION X-HTTP-AUTHORIZATION X-HTTP_AUTHORIZATION HTTP_AUTHORIZATION}
- SUPPORTED_SCHEMES =
{:basic => 'Basic', :digest => 'Digest'}
- SUPPORTED_QOPS =
%w[auth auth-int]
- SUPPORTED_ALGORITHMS =
%w[MD5 MD5-sess]
- PREFERRED_QOP =
'auth'
- PREFERRED_ALGORITHM =
'MD5'