config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallOptions

type CallOptions struct {
	Default   Options           `json:"default"`
	Overrides []OptionOverrides `json:"overrides"`
}

func (*CallOptions) ForPath

func (co *CallOptions) ForPath(path string) *Options

type Config

type Config struct {
	APIKeys    apikey.Config `json:"api_keys"`
	Auth0      auth0.Config  `json:"auth0"`
	STSService sts.Config    `json:"sts"`
	Options    CallOptions   `json:"options"`
}

type OptionOverrides

type OptionOverrides struct {
	// API paths to override
	Paths []string `json:"paths"`
	// Override options
	Override Options `json:"override"`
}

type Options

type Options struct {
	// Require presence of tenant ID
	NeedsTenant bool `json:"needs_tenant"`

	// API Key for machine-to-machine communication, internal to Aserto
	EnableAPIKey bool `json:"enable_api_key"`
	// Tenant-scoped API key, allowing machine-to-machine communication
	EnableMachineKey bool `json:"enable_machine_key"`
	// Auth0 JWT, with an "aserto.com" audience
	EnableAuth0Token bool `json:"enable_auth0_token"`
	// Dex JWT
	EnableDexToken bool `json:"enable_dex_token"`
	// Allows calls without any form of authentication
	EnableAnonymous bool `json:"enable_anonymous"`
}

Jump to

Keyboard shortcuts

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