Repository navigation
feat(sso): vendor icons, provider presets, callback URL and Dex config snippet - #433
Merged
Merged
Conversation
…et in the SSO admin UI Providers get an optional icon (migration 018, default automatic). One server side resolver (explicit icon, GitHub type, Dex connector id, issuer or metadata host, else openid/saml) feeds the public provider list (icon) and the admin API (icon, resolved_icon, callback_url). The login page and provider card draw the icon from simple-icons or heroicons; vendors without a glyph fall back to the generic key. The provider form starts from a vendor preset (Google, Entra, Okta, Keycloak, Auth0, Authentik, GitHub, OIDC, OAuth2, Dex), has an icon picker, shows the callback URL with a copy button and, for Dex, a generated staticClients and connector snippet.
Coverage
Go by area
Web by area (lines)
|
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.
Follow-up to #431: the SSO admin UI and login page get vendor icons, presets, the callback URL and a generated Dex config.
What changed
018_sso_provider_icon.sqladdsauth_sso_providers.icon(NOT NULL DEFAULT '', additive). The table is not journaled, so the recovery registry needs nothing.""(automatic), google, github, gitlab, okta, auth0, keycloak, authentik, gitea, bitbucket, atlassian, openshift, openstack, openid, ldap, saml, key. An unknown key on create or PATCH is a 400validation_failed; PATCH is column-wise,""returns to automatic.auth.ResolveSSOIcon, with the precedence: explicit icon, GitHub type, Dex connector id naming a vendor, issuer or SAML metadata host/path, else openid/saml.icon(never empty). The admin API gainsicon,resolved_iconandcallback_url(OIDC redirect URI or SAML ACS, built fromBASE_URL; the URL builders are shared with the OIDC/SAML loaders).SSOProvideracceptsicon. OpenAPI, generated web types and API docs regenerated.SsoIcondraws simple-icons glyphs (and heroicons for ldap/saml/key) incurrentColor. The login page usesprovider.iconfrom the API (slug guessing removed); the provider card shows the icon and a vendor label ("GitHub via Dex" for a Dex-pinned provider); the form has an icon picker. Microsoft Entra, Ping, OneLogin, JumpCloud, Duo and Dex have no simple-icons glyph and fall back to the generic key; no logos are drawn.callback_urlwith the shared copy button (before the first save: the browsing origin plus the fixed route, with a hint). A Dex provider shows a generatedstaticClientsentry (secretEnv, no secret printed) and a skeleton of the chosen connector, with a link to the Dex docs.New strings are translated in all 11 locales.
docs/security/sso.mdhas a new section on presets, icons (and the brand limitation), the callback URL and the Dex snippet;docs/getting-started/upgrading.mdnotes migration 018 (additive, no action).Verification
make lint,make deadcode,make dup,go mod tidy -diff,make generate/make docs-gen/bun run generate-api(no drift),reuse lint,make docs-check.internal/api,internal/auth,internal/declarative,internal/backup,cmd/docgen,tests/(including the new resolver table test, create/PATCH validation and public list tests).-tags integration, Postgres 18): the SSO provider icon column round trip, audit name resolution, migrator tests,internal/recoveryregistry/schema tests,internal/backup.bun run typecheck,bun test(2374 pass),bun run i18n:check,bun run build.Not run: a browser smoke test and the full Go test suites.