cc

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCacheKey added in v0.8.4

func GetCacheKey(auth *config.Auth) token.CacheKey

func NewAuthSettings added in v0.8.4

func NewAuthSettings(auth *config.Auth) *auth0.Settings

func NewTenantID added in v0.8.4

func NewTenantID(cfg *config.Config, cachedToken *token.CachedToken) clients.TenantID

Types

type CommonCtx

type CommonCtx struct {
	clients.Factory

	Context        context.Context
	Environment    *x.Services
	Auth           *auth0.Settings
	CachedToken    *token.CachedToken
	DecisionLogger *decisionlogger.Settings

	UI *clui.UI
}

func BuildCommonCtx added in v0.8.4

func BuildCommonCtx(configPath config.Path, overrides ...config.Overrider) (*CommonCtx, error)

func BuildTestCtx added in v0.8.6

func BuildTestCtx(ioStreams iostream.IO, configReader io.Reader, overrides ...config.Overrider) (*CommonCtx, error)

func (*CommonCtx) AccessToken

func (ctx *CommonCtx) AccessToken() (string, error)

func (*CommonCtx) AuthorizerAPIKey

func (ctx *CommonCtx) AuthorizerAPIKey() (string, error)

func (*CommonCtx) DecisionLogsKey added in v0.8.0

func (ctx *CommonCtx) DecisionLogsKey() (string, error)

func (*CommonCtx) Logf added in v0.1.3

func (ctx *CommonCtx) Logf(format string, v ...interface{})

func (*CommonCtx) Token

func (ctx *CommonCtx) Token() (*api.Token, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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