Beispiel #1
1
void HTTPCredentials::extractCredentials(const Poco::URI& uri, std::string& username, std::string& password)
{
	if (!uri.getUserInfo().empty()) 
	{
		extractCredentials(uri.getUserInfo(), username, password);
	}
}
Beispiel #2
0
void extractCredentials(const http::URL& uri, std::string& username,
                        std::string& password)
{
    if (!uri.userInfo().empty()) {
        extractCredentials(uri.userInfo(), username, password);
    }
}
Beispiel #3
0
void Authenticator::fromURI(const http::URL& uri)
{
    std::string username;
    std::string password;
    extractCredentials(uri, username, password);
    setUsername(username);
    setPassword(password);
}
Beispiel #4
0
void Authenticator::fromUserInfo(const std::string& userInfo)
{
    std::string username;
    std::string password;
    extractCredentials(userInfo, username, password);
    setUsername(username);
    setPassword(password);
}
void HTTPCredentials::fromURI(const URI& uri)
{
    std::string username;
    std::string password;

    extractCredentials(uri, username, password);
    setUsername(username);
    setPassword(password);
    // TODO: Reset digest state?
}