cachedauth

package
v2.33.14 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(conf Config)

Configure will configure the package please do not use go-utility/v2/auth together with this package

func GetTokens

func GetTokens() auth.Tokens

GetTokens will return the cached tokens

note: Does not refresh the tokens

func GetTokensByUser added in v2.9.1

func GetTokensByUser(username string) auth.Tokens

GetTokens will return the cached tokens

note: Does not refresh the tokens

func SignIn

func SignIn(ctx context.Context, username, password string) error

SignIn is thread safe and only returns new tokens if the old tokens are about to expire

Types

type Config

type Config struct {
	WithDatadogTracing    bool
	WithOpenCensusTracing bool   // default
	ServiceName           string // needed when using lambda and Datadog for tracing
	Stage                 string
}

Config is the configuration of the package

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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