hostconf_token

package
v0.0.0-...-1a88b7f Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenIssuer      = "idmsvc/v1"
	AudJoinHost      = "join host"
	ClaimOrgId       = "rhorg"
	ClaimDomainId    = "rhdomid"
	ClaimFqdn        = "rhfqdn"
	ClaimInventoryId = "rhinvid"
)

Token

Variables

This section is empty.

Functions

func BuildHostconfToken

func BuildHostconfToken(
	rhsmId public.SubscriptionManagerId,
	orgId string,
	inventoryId public.HostId,
	fqdn public.Fqdn,
	domainId public.DomainId,
	validity time.Duration,
) (tok jwt.Token, err error)

BuildHostconfToken creates a token instance with all claims for host configuration token.

func SignToken

func SignToken(tok jwt.Token, keys []jwk.Key) ([]byte, error)

signToken serializes the token and signs it with all given keys. The return value is a JWS in JSON format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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