Aniston NexusDocs
Open Aniston Nexus

White-labeling

Give the whole product, one organization or one customer its own name, logo, favicon and colours, and its own sign-in page by host name.

Aniston Nexus can show another name, logo, favicon and colours: for the whole installation, for one organization (tenant) or for one of its customers. A customer of the University, for example, can see "UoH Water" with the University's logo instead of "Aniston Nexus".

Three levels

LevelWho sets itWhere
Product defaultSystem administratorSettings > White-labeling
OrganizationTenant administratorAdvanced settings > Settings > White-labeling, What to brand: Organization
CustomerTenant administratorSame page, What to brand: Customer, then pick the customer

Each level overrides the one below it field by field: an empty field uses the inherited value, which the page shows as "Empty: …". Users see the branding of their customer, else of their organization, else the product default, else the built-in Aniston Nexus look.

Reset to inherited clears every field of the level and releases its login domains.

Fields

FieldRules
Application titleUp to 64 characters. Replaces "Aniston Nexus" in the side menu, on dashboards and in the browser tab
Short nameUp to 24 characters, used where space is tight
Logo, FaviconImages from the image library: your organization's images or system images. The product default can use system images only. Links to other websites and data URIs are refused
Primary colourHex colour such as #305680 (#abc is read as #aabbcc). Buttons, links, selection and focus ring
Accent colourHex colour. Fills, meters and highlights; empty uses the primary colour
"Powered by Aniston Nexus"Inherit, Show or Hide. Shown under a custom title in the side menu and on dashboards; shown by default
Login domainsOrganization and customer levels only: up to 10 host names, see below

Titles may not contain <, > or control characters. The page warns when a colour is so light that text in it would be hard to read, and then uses a darker shade for text and links. Material form controls keep the built-in palette.

The Preview next to the form shows the side menu, a card and the sign-in button with your values before you save. Signed-in users see a saved change the next time they open or reload the app.

Your own sign-in page

Add one or more login domains (for example water.uohyd.ac.in) to an organization or customer. When the sign-in page is opened on that host name, it uses that level's branding: colours, title in the browser tab and favicon. On any other host name the sign-in page uses the product default.

  1. Point the domain's DNS record at the Aniston Nexus server and add it to the TLS certificate of the production proxy (deploy/production/tls-proxy/).
  2. Enter the host name only: no https://, port or path. Press Enter after each one.
  3. To show your images before sign-in, make the logo and favicon public in the image library. Images that are not public are left out of the sign-in page.

A host name can belong to only one organization or customer on the server; saving a domain that another organization already uses is refused.

Security

  • Every value is checked by the server: titles for markup, colours for the hex format, images for existing in the image library of the same organization (or the system), domains for a valid host name.
  • A tenant administrator can only change their own organization and its customers; customer users cannot change branding.
  • The public sign-in endpoint returns only the title, short name, colours, the "powered by" switch and public image links, never which organization or customer owns a domain.

Where it is stored

No database table is added. The product default and each organization's branding are stored in the admin setting nexusBranding of the system or the tenant; a customer's branding in the customer's server attribute nexusBranding. The list of login domains is kept in the system admin setting nexusBrandingDomains. Other servers of a cluster see a change within nexus.branding.cache_ttl_sec seconds (default 30).

REST API

CallWhoWhat it does
GET /api/nexus/branding/currentAny signed-in userThe branding the user sees
GET /api/noauth/nexus/branding?domain=<host>AnyoneThe sign-in branding of a host name (without domain: the request's host)
GET /api/nexus/branding/inherited?level=System or tenant administratorWhat a level inherits (SYSTEM, TENANT, CUSTOMER)
GET, POST, DELETE /api/nexus/branding/systemSystem administratorProduct default
GET, POST, DELETE /api/nexus/branding/tenantTenant administrator (system administrator with tenantId)Organization
GET, POST, DELETE /api/nexus/branding/customer/{customerId}Tenant administratorOne customer

Body of a POST (every field optional; null inherits):

{"title": "UoH Water", "shortName": "Water", "logo": "/api/images/tenant/uoh-logo.svg",
 "favicon": "/api/images/tenant/uoh-favicon.png", "primaryColor": "#305680", "accentColor": "#16a2e0",
 "poweredBy": true, "loginDomains": ["water.uohyd.ac.in"]}