Documentation
¶
Index ¶
- Constants
- Variables
- type ClientType
- type Option
- func WithClientType(val ClientType) Option
- func WithEmail(val string) Option
- func WithGroups(vals []string) Option
- func WithIssuer(val string) Option
- func WithRawClaims(val string) Option
- func WithRegion(val string) Option
- func WithSignatureAlgorithm(val auth.SignatureAlgorithm) Option
- func WithSubject(val string) Option
- type Signer
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 WithClientType ¶
func WithClientType(val ClientType) Option
func WithGroups ¶
func WithIssuer ¶ added in v0.4.1
func WithRawClaims ¶ added in v0.6.0
func WithRegion ¶
func WithSignatureAlgorithm ¶
func WithSignatureAlgorithm(val auth.SignatureAlgorithm) Option
func WithSubject ¶
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) IsDisabled ¶ added in v0.5.0
func (*Signer) SigningKeyID ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.