brandingapi

package
v1.169.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package brandingapi is the unauthenticated branding route the portal reads before anyone signs in: the deployment's name, title, logos, sign-in options and the scheme its references are written under (#2776). Extracted from pkg/admin for its size budget.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(cfg *platform.Config) http.HandlerFunc

Handler answers GET /api/v1/admin/public/branding. This endpoint is unauthenticated and returns only non-sensitive display info.

Types

type Response

type Response struct {
	Name            string `json:"name" example:"acme-data-platform"`
	Version         string `json:"version" example:"1.55.11"`
	PortalTitle     string `json:"portal_title" example:"ACME Data Platform"`
	BrandName       string `json:"brand_name" example:"ACME"`
	BrandURL        string `json:"brand_url" example:"https://acme.example.com"`
	VersionURL      string `json:"version_url" example:"https://acme.example.com/changelog"`
	PortalTagline   string `json:"portal_tagline" example:"Sign in to access your data."`
	OIDCButtonLabel string `json:"oidc_button_label" example:"Sign in with ACME Keycloak"`
	PortalLogoLight string `json:"portal_logo_light" example:"https://example.com/logo-light.svg"`
	PortalLogoDark  string `json:"portal_logo_dark" example:"https://example.com/logo-dark.svg"`
	OIDCEnabled     bool   `json:"oidc_enabled" example:"false"`
	// LoginRedirect: the login screen sends a signed-out visitor straight to
	// the identity provider; true only with portal.login_redirect and OIDC on.
	LoginRedirect bool `json:"login_redirect" example:"false"`
	// AllowAPIKeyLogin: /portal/?login=api_key offers the API key form.
	AllowAPIKeyLogin bool `json:"allow_api_key_login" example:"true"`
	// ReferenceScheme is the scheme references are written under (#2776):
	// the portal copies and shows references with it, and reads both it and
	// mcp:.
	ReferenceScheme string `json:"reference_scheme" example:"mcp"`
}

Response is returned by the unauthenticated branding endpoint.

Jump to

Keyboard shortcuts

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