Class: WEBrick::HTTPAuth::NoAuthenticationRequired
- Inherits:
-
Object
- Object
- WEBrick::HTTPAuth::NoAuthenticationRequired
- 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 = (req) || req.["HTTP_X_FORWARDED_FOR"] || req.["REMOTE_ADDR"] end |