mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-20 17:52:46 +00:00
add sso version to network config object
This commit is contained in:
parent
3818351287
commit
95032cc74d
@ -188,6 +188,7 @@ bool NetworkConfig::toDictionary(Dictionary<ZT_NETWORKCONFIG_DICT_CAPACITY> &d,b
|
|||||||
if (!d.add(ZT_NETWORKCONFIG_DICT_KEY_AUTHENTICATION_URL, this->authenticationURL)) return false;
|
if (!d.add(ZT_NETWORKCONFIG_DICT_KEY_AUTHENTICATION_URL, this->authenticationURL)) return false;
|
||||||
}
|
}
|
||||||
if (!d.add(ZT_NETWORKCONFIG_DICT_KEY_AUTHENTICATION_EXPIRY_TIME, this->authenticationExpiryTime)) return false;
|
if (!d.add(ZT_NETWORKCONFIG_DICT_KEY_AUTHENTICATION_EXPIRY_TIME, this->authenticationExpiryTime)) return false;
|
||||||
|
if (!d.add(ZT_NETWORKCONFIG_DICT_KEY_SSO_VERSION, this->ssoVersion)) return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
delete tmp;
|
delete tmp;
|
||||||
@ -383,9 +384,11 @@ bool NetworkConfig::fromDictionary(const Dictionary<ZT_NETWORKCONFIG_DICT_CAPACI
|
|||||||
this->authenticationURL[0] = 0;
|
this->authenticationURL[0] = 0;
|
||||||
}
|
}
|
||||||
this->authenticationExpiryTime = d.getI(ZT_NETWORKCONFIG_DICT_KEY_AUTHENTICATION_EXPIRY_TIME, 0);
|
this->authenticationExpiryTime = d.getI(ZT_NETWORKCONFIG_DICT_KEY_AUTHENTICATION_EXPIRY_TIME, 0);
|
||||||
|
this->ssoVersion = d.getUI(ZT_NETWORKCONFIG_DICT_KEY_SSO_VERSION, 0);
|
||||||
} else {
|
} else {
|
||||||
this->authenticationURL[0] = 0;
|
this->authenticationURL[0] = 0;
|
||||||
this->authenticationExpiryTime = 0;
|
this->authenticationExpiryTime = 0;
|
||||||
|
this->ssoVersion = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -184,6 +184,8 @@ namespace ZeroTier {
|
|||||||
#define ZT_NETWORKCONFIG_DICT_KEY_AUTHENTICATION_URL "aurl"
|
#define ZT_NETWORKCONFIG_DICT_KEY_AUTHENTICATION_URL "aurl"
|
||||||
// authentication expiry
|
// authentication expiry
|
||||||
#define ZT_NETWORKCONFIG_DICT_KEY_AUTHENTICATION_EXPIRY_TIME "aexpt"
|
#define ZT_NETWORKCONFIG_DICT_KEY_AUTHENTICATION_EXPIRY_TIME "aexpt"
|
||||||
|
// sso impl. version
|
||||||
|
#define ZT_NETWORKCONFIG_DICT_KEY_SSO_VERSION "ssov"
|
||||||
|
|
||||||
// Legacy fields -- these are obsoleted but are included when older clients query
|
// Legacy fields -- these are obsoleted but are included when older clients query
|
||||||
|
|
||||||
@ -242,7 +244,8 @@ public:
|
|||||||
dnsCount(0),
|
dnsCount(0),
|
||||||
ssoEnabled(false),
|
ssoEnabled(false),
|
||||||
authenticationURL(),
|
authenticationURL(),
|
||||||
authenticationExpiryTime(0)
|
authenticationExpiryTime(0),
|
||||||
|
ssoVersion(0)
|
||||||
{
|
{
|
||||||
name[0] = 0;
|
name[0] = 0;
|
||||||
memset(specialists, 0, sizeof(uint64_t)*ZT_MAX_NETWORK_SPECIALISTS);
|
memset(specialists, 0, sizeof(uint64_t)*ZT_MAX_NETWORK_SPECIALISTS);
|
||||||
@ -628,6 +631,11 @@ public:
|
|||||||
* Time current authentication expires or 0 if external authentication is disabled
|
* Time current authentication expires or 0 if external authentication is disabled
|
||||||
*/
|
*/
|
||||||
uint64_t authenticationExpiryTime;
|
uint64_t authenticationExpiryTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SSO implementaiton version
|
||||||
|
*/
|
||||||
|
uint64_t ssoVersion;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace ZeroTier
|
} // namespace ZeroTier
|
||||||
|
Loading…
x
Reference in New Issue
Block a user