| 90 | |
| 91 | |
| 92 | void HTTPCredentials::updateAuthInfo(HTTPRequest& request) |
| 93 | { |
| 94 | if (request.has(HTTPRequest::AUTHORIZATION)) |
| 95 | { |
| 96 | const std::string& authorization = request.get(HTTPRequest::AUTHORIZATION); |
| 97 | |
| 98 | if (isBasicCredentials(authorization)) |
| 99 | { |
| 100 | HTTPBasicCredentials(_digest.getUsername(), _digest.getPassword()).authenticate(request); |
| 101 | } |
| 102 | else if (isDigestCredentials(authorization)) |
| 103 | { |
| 104 | _digest.updateAuthInfo(request); |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | |
| 110 | void HTTPCredentials::proxyAuthenticate(HTTPRequest& request, const HTTPResponse& response) |
nothing calls this directly
no test coverage detected