Class: WEBrick::HTTPAuth::NoAuthenticationRequired

Inherits:
Object
  • Object
show all
Includes:
SoksUserCookie
Defined in:
lib/authenticators.rb

Instance Method Summary collapse

Methods included from SoksUserCookie

#add_cookie, #username_from_cookie

Instance Method Details

#authenticate(req, res) ⇒ Object



29
30
31
# File 'lib/authenticators.rb', line 29

def authenticate(req, res)
	req.user = username_from_cookie(req) || req.meta_vars["HTTP_X_FORWARDED_FOR"] || req.meta_vars["REMOTE_ADDR"]
end