package
1.20.4
Repository: https://github.com/aws/smithy-go.git
Documentation: pkg.go.dev

# Functions

AddAuthenticationMiddleware helper adds the AuthenticationMiddleware to the middleware Stack in the Finalize step with the options provided.
NewAuthenticationMiddleware returns an initialized AuthenticationMiddleware.
NewSignHTTPSMessage returns an initialized signer for HTTP messages.
NewTokenCache returns a initialized TokenCache that implements the TokenProvider interface.

# Structs

AuthenticationMiddleware provides the Finalize middleware step for signing an request message with a bearer token.
SignHTTPSMessage provides a bearer token authentication implementation that will sign the message with the provided bearer token.
StaticTokenProvider provides a utility for wrapping a static bearer token value within an implementation of a token provider.
Token provides a type wrapping a bearer token and expiration metadata.
TokenCache provides an utility to cache Bearer Authentication tokens from a wrapped TokenProvider.
TokenCacheOptions provides a set of optional configuration options for the TokenCache TokenProvider.

# Interfaces

Message is the middleware stack's request transport message value.
Signer provides an interface for implementations to decorate a request message with a bearer token.
TokenProvider provides interface for retrieving bearer tokens.

# Type aliases

TokenProviderFunc provides a helper utility to wrap a function as a type that implements the TokenProvider interface.