method

proxy_basic_auth

v1_9_3_125 - Show latest stable - Class: WEBrick::HTTPAuth
proxy_basic_auth(req, res, realm)
public

Simple wrapper for providing basic authentication for a proxied request. When called with a request req, response res, authentication realm and block the block will be called with a username and password. If the block returns true the request is allowed to continue, otherwise an HTTPStatus::ProxyAuthenticationRequired error is raised.