Documentation ¶
Index ¶
- Variables
- func BuildOauthTokenParams(clientID, clientSecret, audience string) url.Values
- func BuildOauthTokenURL(domain string) string
- func Execute()
- func GenMarkdownTree(cmd *cobra.Command, dir string) error
- func GenerateCommandPage(cmd *cobra.Command, w io.Writer) error
- func GenerateDocs() error
- func GenerateHomepage(cmd *cobra.Command, w io.Writer) error
- func GeneratePage(w io.Writer, name, body string, data interface{}) error
- func GenerateParentPage(cmd *cobra.Command, w io.Writer) error
- func RunLoginAsMachine(ctx context.Context, inputs LoginInputs, cli *cli, cmd *cobra.Command) error
- func RunLoginAsUser(ctx context.Context, cli *cli, additionalScopes []string, domain string) (config.Tenant, error)
- func WrappedAliases(cmd *cobra.Command) string
- func WrappedInheritedFlagUsages(cmd *cobra.Command) string
- func WrappedLocalFlagUsages(cmd *cobra.Command) string
- type Argument
- func (a *Argument) Ask(cmd *cobra.Command, value interface{}) error
- func (a Argument) GetHelp() string
- func (a Argument) GetIsRequired() bool
- func (a Argument) GetLabel() string
- func (a Argument) GetName() string
- func (a *Argument) Pick(cmd *cobra.Command, result *string, fn pickerOptionsFunc) error
- func (a *Argument) PickMany(cmd *cobra.Command, result *[]string, fn pickerOptionsFunc) error
- type ClientData
- type Flag
- func (f *Flag) Ask(cmd *cobra.Command, value interface{}, defaultValue *string) error
- func (f *Flag) AskBool(cmd *cobra.Command, value *bool, defaultValue *bool) error
- func (f *Flag) AskBoolU(cmd *cobra.Command, value *bool, defaultValue *bool) error
- func (f *Flag) AskInt(cmd *cobra.Command, value *int, defaultValue *string) error
- func (f *Flag) AskIntU(cmd *cobra.Command, value *int, defaultValue *string) error
- func (f *Flag) AskMany(cmd *cobra.Command, value interface{}, defaultValue *string) error
- func (f *Flag) AskManyU(cmd *cobra.Command, value interface{}, defaultValue *string) error
- func (f *Flag) AskPassword(cmd *cobra.Command, value *string) error
- func (f *Flag) AskPasswordU(cmd *cobra.Command, value *string) error
- func (f *Flag) AskU(cmd *cobra.Command, value interface{}, defaultValue *string) error
- func (f Flag) GetHelp() string
- func (f Flag) GetIsRequired() bool
- func (f Flag) GetLabel() string
- func (f Flag) GetName() string
- func (f *Flag) IsSet(cmd *cobra.Command) bool
- func (f *Flag) OpenEditor(cmd *cobra.Command, value *string, defaultValue, filename string, ...) error
- func (f *Flag) OpenEditorU(cmd *cobra.Command, value *string, defaultValue string, filename string) error
- func (f *Flag) OpenEditorW(cmd *cobra.Command, value *string, defaultValue, filename string, ...) error
- func (f *Flag) Pick(cmd *cobra.Command, result *string, fn pickerOptionsFunc) error
- func (f *Flag) PickU(cmd *cobra.Command, result *string, fn pickerOptionsFunc) error
- func (f *Flag) RegisterBool(cmd *cobra.Command, value *bool, defaultValue bool)
- func (f *Flag) RegisterBoolU(cmd *cobra.Command, value *bool, defaultValue bool)
- func (f *Flag) RegisterInt(cmd *cobra.Command, value *int, defaultValue int)
- func (f *Flag) RegisterIntU(cmd *cobra.Command, value *int, defaultValue int)
- func (f *Flag) RegisterString(cmd *cobra.Command, value *string, defaultValue string)
- func (f *Flag) RegisterStringMap(cmd *cobra.Command, value *map[string]string, defaultValue map[string]string)
- func (f *Flag) RegisterStringMapU(cmd *cobra.Command, value *map[string]string, defaultValue map[string]string)
- func (f *Flag) RegisterStringSlice(cmd *cobra.Command, value *[]string, defaultValue []string)
- func (f *Flag) RegisterStringSliceU(cmd *cobra.Command, value *[]string, defaultValue []string)
- func (f *Flag) RegisterStringU(cmd *cobra.Command, value *string, defaultValue string)
- func (f *Flag) Select(cmd *cobra.Command, value interface{}, options []string, defaultValue *string) error
- func (f *Flag) SelectU(cmd *cobra.Command, value interface{}, options []string, defaultValue *string) error
- type LoginInputs
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
var (
ScreenPromptMap = map[string][]string{
"signup-id": {"signup-id"},
"signup-password": {"signup-password"},
"login-id": {"login-id"},
"login-password": {"login-password"},
"login-passwordless": {"login-passwordless-email-code", "login-passwordless-sms-otp"},
"phone-identifier-enrollment": {"phone-identifier-enrollment"},
"phone-identifier-challenge": {"phone-identifier-challenge"},
"email-identifier-challenge": {"email-identifier-challenge"},
"passkeys": {"passkey-enrollment", "passkey-enrollment-local"},
"captcha": {"interstitial-captcha"},
}
)
Functions ¶
func BuildOauthTokenParams ¶
func BuildOauthTokenURL ¶
func GenMarkdownTree ¶ added in v1.0.0
GenMarkdownTree is the same as GenMarkdownTree, but with linkHandler.
func GenerateCommandPage ¶ added in v1.0.0
GenerateCommandPage creates custom markdown for the individual command pages.
func GenerateDocs ¶ added in v1.0.0
func GenerateDocs() error
GenerateDocs will generate the documentation for all the commands under the ./docs folder.
func GenerateHomepage ¶ added in v1.0.0
GenerateHomepage creates custom markdown for the homepage.
func GeneratePage ¶ added in v1.0.0
func GenerateParentPage ¶ added in v1.0.0
GenerateParentPage creates custom markdown for the parent command pages.
func RunLoginAsMachine ¶ added in v1.0.0
RunLoginAsMachine facilitates the authentication process using client credentials (client ID, client secret).
func RunLoginAsUser ¶ added in v1.0.0
func RunLoginAsUser(ctx context.Context, cli *cli, additionalScopes []string, domain string) (config.Tenant, error)
RunLoginAsUser runs the login flow guiding the user through the process by showing the login instructions, opening the browser.
func WrappedAliases ¶ added in v0.10.3
WrappedAliases returns a formatted string containing the command aliases if defined, otherwise an empty string.
func WrappedInheritedFlagUsages ¶
WrappedInheritedFlagUsages returns a string containing the usage information for all flags which were inherited from parent commands, wrapped to the terminal's width.
func WrappedLocalFlagUsages ¶
WrappedLocalFlagUsages returns a string containing the usage information for all flags specifically set in the current command, wrapped to the terminal's width.
Types ¶
type Argument ¶ added in v0.3.0
func (Argument) GetIsRequired ¶ added in v0.3.0
type ClientData ¶ added in v1.0.0
type ClientData struct { ID string `json:"id"` Name string `json:"name"` LogoURL string `json:"logo_url,omitempty"` }
ClientData is a minimal representation of an Auth0 Client as defined in the management API. This is used within the branding machinery to populate the tenant data.
type Flag ¶ added in v0.2.3
type Flag struct { Name string LongForm string ShortForm string Help string IsRequired bool AlwaysPrompt bool }
func (*Flag) AskPassword ¶ added in v0.7.0
func (*Flag) AskPasswordU ¶ added in v0.7.0
func (Flag) GetIsRequired ¶ added in v0.3.0
func (*Flag) OpenEditor ¶ added in v0.10.2
func (*Flag) OpenEditorU ¶ added in v0.10.2
func (*Flag) OpenEditorW ¶ added in v0.10.2
func (*Flag) RegisterBool ¶ added in v0.3.0
func (*Flag) RegisterBoolU ¶ added in v0.3.0
func (*Flag) RegisterInt ¶ added in v0.3.0
func (*Flag) RegisterIntU ¶ added in v0.3.0
func (*Flag) RegisterString ¶ added in v0.2.3
func (*Flag) RegisterStringMap ¶ added in v0.9.0
func (*Flag) RegisterStringMapU ¶ added in v0.9.0
func (*Flag) RegisterStringSlice ¶ added in v0.2.5
func (*Flag) RegisterStringSliceU ¶ added in v0.2.5
func (*Flag) RegisterStringU ¶ added in v0.2.3
type LoginInputs ¶ added in v1.0.0
type TemplateData ¶ added in v1.0.0
type TemplateData struct { Filename string Clients []ClientData PrimaryColor string BackgroundColor string LogoURL string TenantName string Body string Experience string }
TemplateData contains all the variables we project onto our embedded go template. These variables largely resemble the same ones in the auth0 branding template.
Source Files ¶
- actions.go
- actions_embed.go
- api.go
- apis.go
- apps.go
- arguments.go
- attack_protection.go
- attack_protection_breached_password_detection.go
- attack_protection_brute_force_protection.go
- attack_protection_suspicious_ip_throttling.go
- cli.go
- completion.go
- custom_domains.go
- doc-gen.go
- email.go
- email_templates.go
- flags.go
- input.go
- ips.go
- log_streams.go
- log_streams_datadog.go
- log_streams_event_bridge.go
- log_streams_event_grid.go
- log_streams_http.go
- log_streams_splunk.go
- log_streams_sumo.go
- login.go
- logout.go
- logs.go
- management.go
- organizations.go
- picker_options.go
- prompts_custom_text.go
- quickstarts.go
- roles.go
- roles_permissions.go
- root.go
- rules.go
- rules_embed.go
- templates.go
- tenants.go
- terraform.go
- terraform_fetcher.go
- test.go
- universal_login.go
- universal_login_customize.go
- universal_login_templates.go
- users.go
- users_blocks.go
- users_roles.go
- utils_shared.go