interfaces

package
v2.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient interface {
	// VerificationKeyByIssuer returns the JWT verification key by the specified issuer
	VerificationKeyByIssuer(ctx context.Context, issuer string) (res models.KeyDataResponse, err error)
}

AuthClient defines the interface for interactions with the auth API endpoint on the security-proxy-auth service.

type AuthenticationInjector

type AuthenticationInjector interface {
	// AddAuthenticationData mutates an HTTP request to add authentication data
	// (suth as an Authorization: header) to an outbound HTTP request
	AddAuthenticationData(_ *http.Request) error
}

AuthenticationInjector defines an interface to obtain a JWT and secure transport for remote service calls

type SecretStoreTokenClient

type SecretStoreTokenClient interface {
	// RegenToken regenerates the secret store client token based on the specified entity id
	RegenToken(ctx context.Context, entityId string) (models.BaseResponse, error)
}

SecretStoreTokenClient defines the interface for interactions with the API endpoint on the security-secretstore-setup service.

Jump to

Keyboard shortcuts

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