Basic plumbing for authentication requirement and piping through of URL information.
This commit is contained in:
parent
9c58308e6a
commit
b270d527f4
13 changed files with 124 additions and 13 deletions
|
@ -820,7 +820,12 @@ enum ZT_VirtualNetworkStatus
|
|||
/**
|
||||
* ZeroTier core version too old
|
||||
*/
|
||||
ZT_NETWORK_STATUS_CLIENT_TOO_OLD = 5
|
||||
ZT_NETWORK_STATUS_CLIENT_TOO_OLD = 5,
|
||||
|
||||
/**
|
||||
* External authentication is required (e.g. SSO)
|
||||
*/
|
||||
ZT_NETWORK_STATUS_AUTHENTICATION_REQUIRED = 6
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -1339,6 +1344,16 @@ typedef struct
|
|||
* Network specific DNS configuration
|
||||
*/
|
||||
ZT_VirtualNetworkDNS dns;
|
||||
|
||||
/**
|
||||
* If the status us AUTHENTICATION_REQUIRED, this may contain a URL for authentication.
|
||||
*/
|
||||
char authenticationURL[256];
|
||||
|
||||
/**
|
||||
* Time that current authentication expires or -1 if external authentication is not required.
|
||||
*/
|
||||
int64_t authenticationExpiryTime;
|
||||
} ZT_VirtualNetworkConfig;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue