Skip to content

Commit

Permalink
include name in encoded token
Browse files Browse the repository at this point in the history
Signed-off-by: Angelos Kolaitis <[email protected]>
  • Loading branch information
neoaggelos committed Mar 5, 2024
1 parent 1525f8e commit 499b24c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cluster/token_records.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type InternalTokenRecordFilter struct {
// ToAPI converts the InternalTokenRecord to a full token and returns an API compatible struct.
func (t *InternalTokenRecord) ToAPI(clusterCert *x509.Certificate, joinAddresses []types.AddrPort) (*internalTypes.TokenRecord, error) {
token := internalTypes.Token{
Name: t.Name,
Secret: t.Secret,
Fingerprint: shared.CertFingerprint(clusterCert),
JoinAddresses: joinAddresses,
Expand Down

0 comments on commit 499b24c

Please sign in to comment.