branding

package
v0.11.8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//go:embed data/default-template.liquid
	DefaultTemplate string

	//go:embed data/footer-template.liquid
	FooterTemplate string

	//go:embed data/image-template.liquid
	ImageTemplate string
)

Functions

func PreviewCustomTemplate

func PreviewCustomTemplate(ctx context.Context, data TemplateData) error

Types

type Client

type Client struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	LogoURL string `json:"logo_url,omitempty"`
}

Client 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 TemplateData

type TemplateData struct {
	Filename        string
	Clients         []Client
	PrimaryColor    string
	BackgroundColor string
	LogoURL         string
	TenantName      string
	Body            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.

Jump to

Keyboard shortcuts

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