tokenserver

package
v0.0.0-...-acaf265 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, config *Config) (*http.Server, error)

Types

type Config

type Config struct {
	Address string

	Certificate tls.Certificate

	TrustPool *x509.CertPool

	RootMap fingerprint.RootMap

	DiscoveryEndpoint string
}

type GetTokenResponse

type GetTokenResponse struct {
	AccessToken     string `json:"access_token"`
	IssuedTokenType string `json:"issued_token_type"`
	ExpiresIn       int    `json:"expires_in"`
	SPIFFEID        string `json:"spiffe_id"`
}

GetTokenResponse is the response returned by a call to `POST /token` on the tokenserver. A successful response contains a JWT in AccessToken

Jump to

Keyboard shortcuts

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