Repository navigation
feat: hosted_ui branding on the OpenID Provider service config - #129
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
OidcEdgeConfigResponseSchemagains optionalhostedUi(thehosted_uisystem config value), so the OpenID Provider service reads branding with the rest ofGET /oidc/config. Optional, soOIDC_EDGE_CONTRACT_VERSIONstays 1.HostedUiSchema(added in feat: add schemas for OpenID Provider applications, resources and scopes #125) gainscolors.muted.logoUrl: still https only; now refuses credentials and any of' " ( ) ;, spaces,<,>,\, so it cannot end a CSSurl()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 theHostedUiSchemaname #125 already published in 0.34.0-next.1, which the API imports.Minor changeset; the repo is in
nextpre mode, so the release PR produces the next0.34.0-next.N.Closes #128
Checks
npm run typecheck: passnpm run lint: passnpm test: 24 files, 482 tests passnpm run format:check: passnpm run buildandnpm run check-npm-build: pass