File: constants.rb

package info (click to toggle)
ruby-httpauth 0.2.1%2Bgh-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 192 kB
  • sloc: ruby: 925; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 609 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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 (http://www.ietf.org/rfc/rfc2617.txt)
module HTTPAuth
  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'
end