Documentation
¶
Index ¶
- func LoadAuthenticationConfiguration(ctx context.Context, scheme *runtime.Scheme, configuration []byte, ...) (authenticator.Token, string, error)
- func VerifyClientObjectToken(ctx context.Context, authz authentication.ContextAuthenticator, ...) (*jumpstarterdevv1alpha1.Client, error)
- func VerifyExporterObjectToken(ctx context.Context, authz authentication.ContextAuthenticator, ...) (*jumpstarterdevv1alpha1.Exporter, error)
- func VerifyOIDCToken(ctx context.Context, auth authentication.ContextAuthenticator, ...) (authorizer.Attributes, error)
- type Signer
- func (k *Signer) Algorithm() jose.SignatureAlgorithm
- func (k *Signer) Audience() string
- func (k *Signer) ID() string
- func (k *Signer) Issuer() string
- func (k *Signer) Key() any
- func (k *Signer) KeySet(context.Context) ([]op.Key, error)
- func (k *Signer) Register(group gin.IRoutes)
- func (k *Signer) Token(subject string) (string, error)
- func (k *Signer) Use() string
- func (k *Signer) Validate(token string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyClientObjectToken ¶
func VerifyClientObjectToken( ctx context.Context, authz authentication.ContextAuthenticator, authn authorizer.Authorizer, attr authorization.ContextAttributesGetter, kclient client.Client, ) (*jumpstarterdevv1alpha1.Client, error)
func VerifyExporterObjectToken ¶
func VerifyExporterObjectToken( ctx context.Context, authz authentication.ContextAuthenticator, authn authorizer.Authorizer, attr authorization.ContextAttributesGetter, kclient client.Client, ) (*jumpstarterdevv1alpha1.Exporter, error)
func VerifyOIDCToken ¶
func VerifyOIDCToken( ctx context.Context, auth authentication.ContextAuthenticator, attr authorization.ContextAttributesGetter, ) (authorizer.Attributes, error)
Types ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
func NewSignerFromSeed ¶
Click to show internal directories.
Click to hide internal directories.