Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvTopazAuthorizerSvc string = "TOPAZ_AUTHORIZER_SVC" EnvTopazAuthorizerKey string = "TOPAZ_AUTHORIZER_KEY" )
View Source
const ( EnvTopazHeaderTenantID string = "TOPAZ_HEADER_TENANT_ID" EnvTopazHeaderSessionID string = "TOPAZ_HEADER_SESSION_ID" )
View Source
const ( EnvTopazDirectorySvc string = "TOPAZ_DIRECTORY_SVC" EnvTopazDirectoryKey string = "TOPAZ_DIRECTORY_KEY" )
Variables ¶
This section is empty.
Functions ¶
func NewAuthorizerClient ¶ added in v0.25.12
func NewAuthorizerClient(c *cc.CommonCtx, cfg *AuthorizerConfig) (authorizer.AuthorizerClient, error)
func NewDirectoryClient ¶
Types ¶
type AuthorizerConfig ¶ added in v0.25.12
type AuthorizerConfig struct { Host string `flag:"host" short:"H" env:"TOPAZ_AUTHORIZER_SVC" help:"authorizer service address"` APIKey string `flag:"api-key" short:"k" env:"TOPAZ_AUTHORIZER_KEY" help:"authorizer API key"` Token string `flag:"token" short:"t" env:"TOPAZ_AUTHORIZER_TOKEN" help:"authorizer OAuth2.0 token" hidden:""` Insecure bool `flag:"insecure" short:"i" env:"INSECURE" help:"skip TLS verification"` TenantID string `flag:"tenant-id" help:"" env:"ASERTO_TENANT_ID" ` }
type DirectoryConfig ¶ added in v0.32.0
type DirectoryConfig struct { Host string `flag:"host" short:"H" env:"TOPAZ_DIRECTORY_SVC" help:"directory service address"` APIKey string `flag:"api-key" short:"k" env:"TOPAZ_DIRECTORY_KEY" help:"directory API key"` Token string `flag:"token" short:"t" env:"TOPAZ_DIRECTORY_TOKEN" help:"directory OAuth2.0 token" hidden:""` Insecure bool `flag:"insecure" short:"i" env:"INSECURE" help:"skip TLS verification"` TenantID string `flag:"tenant-id" help:"" env:"ASERTO_TENANT_ID" ` }
Click to show internal directories.
Click to hide internal directories.