Module: WEBrick::HTTPAuth::Authenticator

Included in:
BasicAuth, DigestAuth
Defined in:
lib/webrick/httpauth/authenticator.rb

Overview

Module providing generic support for both Digest and Basic authentication schemes.

Constant Summary collapse

RequestField =

:nodoc:

"Authorization"
ResponseField =

:nodoc:

"WWW-Authenticate"
ResponseInfoField =

:nodoc:

"Authentication-Info"
AuthException =

:nodoc:

HTTPStatus::Unauthorized
AuthScheme =

Method of authentication, must be overridden by the including class

nil

Instance Attribute Summary collapse

Instance Attribute Details

#loggerObject (readonly)

The logger for this authenticator


42
43
44
# File 'lib/webrick/httpauth/authenticator.rb', line 42

def logger
  @logger
end

#realmObject (readonly)

The realm this authenticator covers


32
33
34
# File 'lib/webrick/httpauth/authenticator.rb', line 32

def realm
  @realm
end

#userdbObject (readonly)

The user database for this authenticator


37
38
39
# File 'lib/webrick/httpauth/authenticator.rb', line 37

def userdb
  @userdb
end