Documentation
¶
Overview ¶
Package token is the copy-paste enrollment token: the JWT that authenticates a peer, with the hub's tunnel URL in the audience claim. The token IS the JWT in compact JWS form, so any JWT tool can read it; Decode also accepts the pre-v0.20 base64 JSON envelope so tokens already handed out keep working. The token carries no certificate — a wss:// tunnel URL dials TLS under the WebSocket, a ws:// one dials plaintext (https/http accepted as aliases).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JoinToken ¶
type JoinToken struct {
Peer string // JWT subject
TunnelURL string // JWT audience: e.g. wss://holt.example.com
JWT string // the compact JWS the peer presents on attach
}
JoinToken is the decoded view of a join token.