Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidToken = errors.New("invalid token")
Functions ¶
func RemoteAuth ¶
func RemoteAuth(ctx context.Context, address, token string) ( *types.RemoteJoinResponsePayload, error, )
RemoteAuth attempts to connect to a remote Disco server, and authenticate with the given invitation token. The token is a concatentation of 32 bytes of random data and the public X25519 key of the remote node, as generated by the `invite user` command, and transmitted out-of-band by the user to the client node. If the authentication is successful, it returns the TLS server (CA) certificate, the unencrypted TLS client certificate, and the unencrypted TLS client private key. See the inline comments for details about the process.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.