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



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

def logger
  @logger
end

#realmObject (readonly)

The realm this authenticator covers



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

def realm
  @realm
end

#userdbObject (readonly)

The user database for this authenticator



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

def userdb
  @userdb
end