From 22a0acff3917a0eebfe2840eb138cd830f4056f6 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Thu, 9 Apr 2020 17:16:20 +1000 Subject: [PATCH] tailcfg: add auth key to RegisterRequest Signed-off-by: David Crawshaw --- tailcfg/tailcfg.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index 361bbd713..88128096f 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -352,10 +352,10 @@ type RegisterRequest struct { NodeKey NodeKey OldNodeKey NodeKey Auth struct { - Provider string - LoginName string - // One of LoginName or Oauth2Token is set. - Oauth2Token *oauth2.Token + // One of Provider/LoginName, Oauth2Token, or AuthKey is set. + Provider, LoginName string + Oauth2Token *oauth2.Token + AuthKey string } Expiry time.Time // requested key expiry, server policy may override Followup string // response waits until AuthURL is visited