Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed data/default-template.liquid DefaultTemplate string 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.
Click to show internal directories.
Click to hide internal directories.