core

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL