MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / updateAuthInfo

Method updateAuthInfo

base/poco/Net/src/HTTPCredentials.cpp:92–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91
92void 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
110void HTTPCredentials::proxyAuthenticate(HTTPRequest& request, const HTTPResponse& response)

Callers

nothing calls this directly

Calls 4

hasMethod · 0.45
getMethod · 0.45
authenticateMethod · 0.45
getPasswordMethod · 0.45

Tested by

no test coverage detected