Adjust deauth time window and send revocation when SSO members expire.

This commit is contained in:
Adam Ierymenko 2021-08-18 12:17:40 -04:00
parent 2d0f76bb9c
commit 576b4f03a5
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
6 changed files with 27 additions and 3 deletions

View file

@ -196,6 +196,14 @@ void DB::networks(std::set<uint64_t> &networks)
networks.insert(n->first);
}
void DB::networkMemberSSOHasExpired(uint64_t nwid, int64_t now) {
std::lock_guard<std::mutex> l(_networks_l);
auto nw = _networks.find(nwid);
if (nw != _networks.end()) {
nw->second->mostRecentDeauthTime = now;
}
}
void DB::_memberChanged(nlohmann::json &old,nlohmann::json &memberConfig,bool notifyListeners)
{
uint64_t memberId = 0;