config

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Code generated by baton-sdk. DO NOT EDIT!!!

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseUrlField = field.StringField(
		"auth0-base-url",
		field.WithDisplayName("Base URL"),
		field.WithDescription("Base URL of the Auth0 API (e.g., https://your-tenant.auth0.com)"),
		field.WithPlaceholder("https://your-tenant.auth0.com"),
		field.WithRequired(true),
	)
	ClientIdField = field.StringField(
		"auth0-client-id",
		field.WithDisplayName("Client ID"),
		field.WithDescription("Auth0 Machine-to-Machine application client ID"),
		field.WithPlaceholder("your_client_id"),
		field.WithRequired(true),
	)
	ClientSecretField = field.StringField(
		"auth0-client-secret",
		field.WithDisplayName("Client Secret"),
		field.WithDescription("Auth0 Machine-to-Machine application client secret"),
		field.WithIsSecret(true),
		field.WithRequired(true),
	)
	SyncPermissions = field.BoolField(
		"sync-permissions",
		field.WithDisplayName("Sync Permissions"),
		field.WithDescription("Sync permissions along with roles and users"),
	)
)
View Source
var Config = field.NewConfiguration(
	ConfigurationFields,
	field.WithConnectorDisplayName("Auth0"),
	field.WithHelpUrl("/docs/baton/auth0"),
	field.WithIconUrl("/static/app-icons/auth0.svg"),
)

Config defines the configuration for the Auth0 connector.

ConfigurationFields defines the external configuration required for the connector to run.

Functions

This section is empty.

Types

type Auth0 added in v0.0.7

type Auth0 struct {
	Auth0BaseUrl      string `mapstructure:"auth0-base-url"`
	Auth0ClientId     string `mapstructure:"auth0-client-id"`
	Auth0ClientSecret string `mapstructure:"auth0-client-secret"`
	SyncPermissions   bool   `mapstructure:"sync-permissions"`
}

func (*Auth0) GetBool added in v0.0.7

func (c *Auth0) GetBool(fieldName string) bool

func (*Auth0) GetInt added in v0.0.7

func (c *Auth0) GetInt(fieldName string) int

func (*Auth0) GetString added in v0.0.7

func (c *Auth0) GetString(fieldName string) string

func (*Auth0) GetStringMap added in v0.0.7

func (c *Auth0) GetStringMap(fieldName string) map[string]any

func (*Auth0) GetStringSlice added in v0.0.7

func (c *Auth0) GetStringSlice(fieldName string) []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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