mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
kill some noisy logs
This commit is contained in:
parent
eec46a137e
commit
20721491e8
2 changed files with 4 additions and 4 deletions
|
@ -1364,9 +1364,9 @@ void EmbeddedNetworkController::_request(
|
||||||
if (networkSSOEnabled && !memberSSOExempt) {
|
if (networkSSOEnabled && !memberSSOExempt) {
|
||||||
authenticationURL = _db.getSSOAuthURL(member, _ssoRedirectURL);
|
authenticationURL = _db.getSSOAuthURL(member, _ssoRedirectURL);
|
||||||
std::string memberId = member["id"];
|
std::string memberId = member["id"];
|
||||||
fprintf(stderr, "ssoEnabled && !ssoExempt %s-%s\n", nwids, memberId.c_str());
|
//fprintf(stderr, "ssoEnabled && !ssoExempt %s-%s\n", nwids, memberId.c_str());
|
||||||
uint64_t authenticationExpiryTime = (int64_t)OSUtils::jsonInt(member["authenticationExpiryTime"], 0);
|
uint64_t authenticationExpiryTime = (int64_t)OSUtils::jsonInt(member["authenticationExpiryTime"], 0);
|
||||||
fprintf(stderr, "authExpiryTime: %lld\n", authenticationExpiryTime);
|
//fprintf(stderr, "authExpiryTime: %lld\n", authenticationExpiryTime);
|
||||||
if (authenticationExpiryTime < now) {
|
if (authenticationExpiryTime < now) {
|
||||||
if (!authenticationURL.empty()) {
|
if (!authenticationURL.empty()) {
|
||||||
_db.networkMemberSSOHasExpired(nwid, now);
|
_db.networkMemberSSOHasExpired(nwid, now);
|
||||||
|
@ -1374,7 +1374,7 @@ void EmbeddedNetworkController::_request(
|
||||||
|
|
||||||
Dictionary<3072> authInfo;
|
Dictionary<3072> authInfo;
|
||||||
authInfo.add("aU", authenticationURL.c_str());
|
authInfo.add("aU", authenticationURL.c_str());
|
||||||
fprintf(stderr, "sending auth URL: %s\n", authenticationURL.c_str());
|
//fprintf(stderr, "sending auth URL: %s\n", authenticationURL.c_str());
|
||||||
|
|
||||||
DB::cleanMember(member);
|
DB::cleanMember(member);
|
||||||
_db.save(member,true);
|
_db.save(member,true);
|
||||||
|
|
|
@ -335,7 +335,7 @@ std::string PostgreSQL::getSSOAuthURL(const nlohmann::json &member, const std::s
|
||||||
std::string memberId = member["id"];
|
std::string memberId = member["id"];
|
||||||
char authenticationURL[4096] = {0};
|
char authenticationURL[4096] = {0};
|
||||||
|
|
||||||
fprintf(stderr, "PostgreSQL::updateMemberOnLoad: %s-%s\n", networkId.c_str(), memberId.c_str());
|
//fprintf(stderr, "PostgreSQL::updateMemberOnLoad: %s-%s\n", networkId.c_str(), memberId.c_str());
|
||||||
bool have_auth = false;
|
bool have_auth = false;
|
||||||
try {
|
try {
|
||||||
auto c = _pool->borrow();
|
auto c = _pool->borrow();
|
||||||
|
|
Loading…
Add table
Reference in a new issue