mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
tailcfg: add auth key to RegisterRequest
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
parent
a279032998
commit
22a0acff39
@ -352,10 +352,10 @@ type RegisterRequest struct {
|
|||||||
NodeKey NodeKey
|
NodeKey NodeKey
|
||||||
OldNodeKey NodeKey
|
OldNodeKey NodeKey
|
||||||
Auth struct {
|
Auth struct {
|
||||||
Provider string
|
// One of Provider/LoginName, Oauth2Token, or AuthKey is set.
|
||||||
LoginName string
|
Provider, LoginName string
|
||||||
// One of LoginName or Oauth2Token is set.
|
Oauth2Token *oauth2.Token
|
||||||
Oauth2Token *oauth2.Token
|
AuthKey string
|
||||||
}
|
}
|
||||||
Expiry time.Time // requested key expiry, server policy may override
|
Expiry time.Time // requested key expiry, server policy may override
|
||||||
Followup string // response waits until AuthURL is visited
|
Followup string // response waits until AuthURL is visited
|
||||||
|
Loading…
Reference in New Issue
Block a user