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 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.
type SecureTransportProvider ¶ added in v2.0.23
type SecureTransportProvider interface {
// RoundTripper returns the configured http.RoundTripper to use when making the request.
// A nil return falls back to http.DefaultTransport.
RoundTripper() http.RoundTripper
}
SecureTransportProvider defines an interface to obtain a secure http.RoundTripper to use when making http requests. An AuthenticationInjector may optionally also implement SecureTransportProvider; callers type-assert for it so that existing injectors that only decorate the request keep working without change.