mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 11:41:39 +00:00
tailcfg: add RegisterRequest.Ephemeral to request new ephemeral node
So js/wasm clients can log in for a bit using regular Gmail/GitHub auth without using an ephemeral key but still have their node cleaned up when they're done. Updates #3157 Change-Id: I49e3d14e9d355a9b8bff0ea810b0016bfe8d47f2 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
3ad11f6b8c
commit
7b87c04861
@ -651,6 +651,11 @@ type RegisterRequest struct {
|
|||||||
Followup string // response waits until AuthURL is visited
|
Followup string // response waits until AuthURL is visited
|
||||||
Hostinfo *Hostinfo
|
Hostinfo *Hostinfo
|
||||||
|
|
||||||
|
// Ephemeral is whether the client is requesting that this
|
||||||
|
// node be considered ephemeral and be automatically deleted
|
||||||
|
// when it stops being active.
|
||||||
|
Ephemeral bool `json:",omitempty"`
|
||||||
|
|
||||||
// The following fields are not used for SignatureNone and are required for
|
// The following fields are not used for SignatureNone and are required for
|
||||||
// SignatureV1:
|
// SignatureV1:
|
||||||
SignatureType SignatureType `json:",omitempty"`
|
SignatureType SignatureType `json:",omitempty"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user