auth

package
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessKeyAuth added in v0.22.0

func AccessKeyAuth(
	appCtx context.Context,
	accessKey string,
	endpoint string,
	transport *http2.Transport,
	retryBackoffTime time.Duration,
) func(ctx context.Context, force bool) (string, error)

AccessKeyAuth creates a new AuthTokenProvider that fetches auth tokens using an access key. If options is set to nil then the default options will be used.

The supplied app context will be passed when performing background operations such as refreshing the access token, which ensures that no operation outlives the lifetime of the application.

By default the AuthTokenProvider will fetch the access key from the environment variable `STATELY_ACCESS_KEY` however this can be explicitly overridden by passing credentials in the options. If no credentials are found, this will return an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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