Documentation ¶
Index ¶
- Constants
- func GetCacheKey(auth *config.Auth) token.CacheKey
- func IsAsertoAccount(name string) bool
- func NewAuthSettings(auth *config.Auth) *auth0.Settings
- func NewTenantID(cfg *config.Config, cachedToken *token.CachedToken) clients.TenantID
- type CommonCtx
- func (ctx *CommonCtx) AccessToken() (string, error)
- func (ctx *CommonCtx) AuthorizerAPIKey() (string, error)
- func (ctx *CommonCtx) DecisionLogsKey() (string, error)
- func (ctx *CommonCtx) Logf(format string, v ...interface{})
- func (ctx *CommonCtx) SaveContextConfig(configurationFile string) error
- func (ctx *CommonCtx) Token() (*api.Token, error)
Constants ¶
View Source
const (
TenantSuffix string = ".aserto.com"
)
Variables ¶
This section is empty.
Functions ¶
func IsAsertoAccount ¶ added in v0.20.6
func NewTenantID ¶ added in v0.8.4
Types ¶
type CommonCtx ¶
type CommonCtx struct { clients.Factory Config *config.Config Context context.Context Environment *x.Services Auth *auth0.Settings CachedToken *token.CachedToken TopazContext *topazCC.CommonCtx DecisionLogger *decisionlogger.Settings UI *clui.UI }
func BuildCommonCtx ¶ added in v0.8.4
func BuildTestCtx ¶ added in v0.8.6
func (*CommonCtx) AccessToken ¶
func (*CommonCtx) AuthorizerAPIKey ¶
func (*CommonCtx) DecisionLogsKey ¶ added in v0.8.0
func (*CommonCtx) SaveContextConfig ¶ added in v0.20.6
Click to show internal directories.
Click to hide internal directories.