From b4247fabecfc5f1536943f027e660887364fc6e4 Mon Sep 17 00:00:00 2001 From: Sonia Appasamy Date: Thu, 19 Oct 2023 14:46:25 -0400 Subject: [PATCH] tailcfg: add ID field to WebClientAuthResponse Updates tailscale/corp#14335 Signed-off-by: Sonia Appasamy --- tailcfg/tailcfg.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index c7031c2d1..fd45108bc 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -2455,16 +2455,18 @@ type QueryFeatureResponse struct { // sent to "/machine/webclient/action" or "/machine/webclient/wait". // See client/web for usage. type WebClientAuthResponse struct { - // Message, if non-empty, provides a message for the user. - Message string `json:",omitempty"` - - // Complete is true when the session authentication has been completed. - Complete bool `json:",omitempty"` + // ID is a unique identifier for the session auth request. + // It can be supplied to "/machine/webclient/wait" to pause until + // the session authentication has been completed. + ID string `json:",omitempty"` // URL is the link for the user to visit to authenticate the session. // // When empty, there is no action for the user to take. URL string `json:",omitempty"` + + // Complete is true when the session authentication has been completed. + Complete bool `json:",omitempty"` } // OverTLSPublicKeyResponse is the JSON response to /key?v=