Skip to content

feat: hosted_ui branding on the OpenID Provider service config - #129

Merged
Bccorb merged 2 commits into
mainfrom
feat/hosted-ui-branding
Oct 31, 2026
Merged

Bccorb merged 2 commits into
mainfrom
feat/hosted-ui-branding

Conversation

@Bccorb

@Bccorb Bccorb commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

What

  • OidcEdgeConfigResponseSchema gains optional hostedUi (the hosted_ui system config value), so the OpenID Provider service reads branding with the rest of GET /oidc/config. Optional, so OIDC_EDGE_CONTRACT_VERSION stays 1.
  • HostedUiSchema (added in feat: add schemas for OpenID Provider applications, resources and scopes #125) gains colors.muted.
  • Tighter validation, since these values land in a page served under a strict nonce CSP:
    • logoUrl: still https only; now refuses credentials and any of ' " ( ) ;, spaces, <, >, \, so it cannot end a CSS url() or an HTML attribute.
    • fontFamily: a comma separated list of bare names or single-quoted names that close (no unterminated CSS string).
    • appName: no control characters.

The issue named the schema HostedUiConfigSchema. It keeps the HostedUiSchema name #125 already published in 0.34.0-next.1, which the API imports.

Minor changeset; the repo is in next pre mode, so the release PR produces the next 0.34.0-next.N.

Closes #128

Checks

  • npm run typecheck: pass
  • npm run lint: pass
  • npm test: 24 files, 482 tests pass
  • npm run format:check: pass
  • npm run build and npm run check-npm-build: pass

Adds an optional hostedUi to the /oidc/config response, a muted color, and tighter
logo URL, font stack and app name validation for values written into the hosted pages.
Percent-encoded or wildcard hosts would reach the edge's img-src unchanged, and an
unparseable URL threw out of safeParse instead of failing validation.
@Bccorb
Bccorb merged commit 5bdd679 into main Oct 31, 2026
5 checks passed
@Bccorb
Bccorb deleted the feat/hosted-ui-branding branch November 8, 2026 00:06
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: hosted_ui branding schema in system config and /oidc/config

1 participant