Skip to content

feat(config): set hosted page branding from the CLI - #334

Merged
Bccorb merged 1 commit into
mainfrom
feat/hosted-ui-branding
Oct 31, 2026
Merged

Bccorb merged 1 commit into
mainfrom
feat/hosted-ui-branding

Conversation

@Bccorb

@Bccorb Bccorb commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Adds seamless config hosted-ui get|set|reset (alias branding) to set and read back hosted page branding, and makes hosted_ui writable whole through config set hosted_ui '<json>' or null.

set and reset read the current hosted_ui, change only the fields named, validate the result with HostedUiSchema from @seamless-auth/types, and send the whole object with PATCH /system-config/admin (admin write plus step-up), because the API replaces it rather than merging.

The logo must be an https URL where the image is already hosted. The API stores no files and the schema takes only https URLs, so a local path, file: or data: value is refused with that reason. Logo upload would need hosting on the API or the provider service first; not in scope here.

Bumps @seamless-auth/types to 0.34.0-next.2 and lists the four OpenID Provider keys as not yet writable (#332). Needs auth server v0.21 (fells-code/seamless-auth-api#532); merge with or after API 0.21.0. Overlaps #333 in package.json and src/core/systemConfig.ts; this branch's hosted_ui entry should win.

Closes #320

Checks

  • npm run build: pass
  • npm test: 73 files, 1593 tests pass
  • npm run coverage: thresholds met (99.34% lines, 96.61% branches)
  • npm run check:types-current: pass

Add seamless config hosted-ui get|set|reset (alias branding) for the
hosted_ui system config key. set and reset read the current branding,
merge the named fields, validate the result with HostedUiSchema from
@seamless-auth/types and write the whole object back, since the API
replaces it. hosted_ui is also writable whole through config set.

A logo must be an https URL where the image is hosted. The API stores no
files, so a local path is refused with that reason.

Bump @seamless-auth/types to 0.34.0-next.2 and list the four new OpenID
Provider keys as not yet writable (#332).
@Bccorb
Bccorb merged commit c5d5a81 into main Oct 31, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: set hosted page branding from the CLI

1 participant