mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
tailcfg: add ID field to WebClientAuthResponse
Updates tailscale/corp#14335 Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
This commit is contained in:
parent
7e933a8816
commit
b4247fabec
@ -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=<n>
|
||||
|
Loading…
Reference in New Issue
Block a user