BearerTokenAdapter adapts smithy bearer.Token to smithy auth.Identity.
type BearerTokenAdapter struct { Token bearer.Token }
func (v *BearerTokenAdapter) Expiration() time.Time
Expiration returns the time of expiration for the token.
BearerTokenProviderAdapter adapts smithy bearer.TokenProvider to smithy auth.IdentityResolver.
type BearerTokenProviderAdapter struct { Provider bearer.TokenProvider }
func (v *BearerTokenProviderAdapter) GetIdentity(ctx context.Context, _ smithy.Properties) ( auth.Identity, error, )
GetIdentity retrieves a bearer token using the underlying provider.
BearerTokenSignerAdapter adapts smithy bearer.Signer to smithy http auth.Signer.
type BearerTokenSignerAdapter struct { Signer bearer.Signer }
func (v *BearerTokenSignerAdapter) SignRequest(ctx context.Context, r *smithyhttp.Request, identity auth.Identity, _ smithy.Properties) error
SignRequest signs the request with the provided bearer token.
CredentialsAdapter adapts aws.Credentials to auth.Identity.
type CredentialsAdapter struct { Credentials aws.Credentials }
func (v *CredentialsAdapter) Expiration() time.Time
Expiration returns the time of expiration for the credentials.
CredentialsProviderAdapter adapts aws.CredentialsProvider to auth.IdentityResolver.
type CredentialsProviderAdapter struct { Provider aws.CredentialsProvider }
func (v *CredentialsProviderAdapter) GetIdentity(ctx context.Context, _ smithy.Properties) ( auth.Identity, error, )
GetIdentity retrieves AWS credentials using the underlying provider.
V4SignerAdapter adapts v4.HTTPSigner to smithy http.Signer.
type V4SignerAdapter struct { Signer v4.HTTPSigner Logger logging.Logger LogSigning bool }
func (v *V4SignerAdapter) SignRequest(ctx context.Context, r *smithyhttp.Request, identity auth.Identity, props smithy.Properties) error
SignRequest signs the request with the provided identity.