clientdata

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	User          ClientType = "user"
	TechnicalUser ClientType = "technical-user"
	System        ClientType = "system"

	// EnrichHeaderWithClientRegion if set on true is including the client region. information in the headers
	EnrichHeaderWithClientRegion = "enrich-header-with-client-region"
	// EnrichHeaderWithClientType if set on true is including the client type. information in the headers
	EnrichHeaderWithClientType = "enrich-header-with-client-type"
	// DisableClientDataComputation if set on true the client data is not generated on the headers
	DisableClientDataComputation = "disable-client-data-computation"
)

Variables

View Source
var (
	ErrComputationNotEnabled = errors.New("computation of client data not enabled")
)

Functions

This section is empty.

Types

type ClientType

type ClientType string

type Option

type Option func(*clientDataBuilder) error

func WithAuthContext added in v0.8.0

func WithAuthContext(val map[string]string) Option

WithAuthContext specifies the authentication context For OIDC this is usually "issuer" and "client_id"

func WithClientType

func WithClientType(val ClientType) Option

func WithEmail

func WithEmail(val string) Option

func WithFamilyName added in v0.8.0

func WithFamilyName(val string) Option

func WithGivenName added in v0.8.0

func WithGivenName(val string) Option

func WithGroups

func WithGroups(vals []string) Option

func WithIdentifier added in v0.8.0

func WithIdentifier(val string) Option

func WithRegion

func WithRegion(val string) Option

func WithSignatureAlgorithm

func WithSignatureAlgorithm(val auth.SignatureAlgorithm) Option

WithSignatureAlgorithm defines the algorithm used to sign the client data

type Signer added in v0.5.0

type Signer struct {
	// contains filtered or unexported fields
}

func NewSigner added in v0.5.0

func NewSigner(featureGates *commoncfg.FeatureGates, cfg *config.ClientData) (*Signer, error)

func (*Signer) Close added in v0.5.0

func (c *Signer) Close() error

func (*Signer) Enabled added in v0.5.0

func (c *Signer) Enabled() bool

func (*Signer) IsDisabled added in v0.5.0

func (c *Signer) IsDisabled() bool

func (*Signer) Sign added in v0.5.0

func (c *Signer) Sign(opts ...Option) (string, string, error)

func (*Signer) SigningKeyID added in v0.5.0

func (c *Signer) SigningKeyID() string

func (*Signer) Start added in v0.5.0

func (c *Signer) Start() error

Jump to

Keyboard shortcuts

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