in src/oslogin_utils.cc [1192:1207]
bool MDSGetUser(const string& username, bool security_key, string* response) {
std::stringstream url;
url << kMetadataServerUrl << "users?username=" << UrlEncode(username);
if (security_key) {
url << "&view=securityKey";
}
long http_code = 0;
if (!HttpGet(url.str(), response, &http_code) || response->empty() ||
http_code != 200) {
return false;
}
return true;
}