You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improvement: Enterprise SSO — ingest IdP metadata (XML/URL) to prefill SAML fields; derive the connection display name from the protocol #2652
Setting up SAML asks admins to hand-transcribe three values from their IdP — Entity ID, SSO URL, and the signing certificate — even though every IdP (Entra, Okta, Keycloak, …) publishes exactly these in a standard federation-metadata XML document. Hand-copying certificates is the most error-prone step of SSO setup and entirely automatable. Meanwhile the connection's display name defaults to a generic "Enterprise SSO" instead of something derived from the chosen protocol/provider.
This is the "auto-determine instead of ask" pattern the settings surface already applies elsewhere (computed callback/ACS URLs, per-protocol default scopes, default role) — the IdP-side fields are the missing half.
Current behaviour
Settings → Enterprise SSO → SAML: idpEntityId, idpSsoUrl, idpCertificate are three free-form fields (app/features/settings/.../enterprise-sso-form.tsx:809-828); displayName defaults to the generic string at :358. The SP side is already auto-computed and read-only (:725-838) — good precedent on the same form.
Proposed change
Add "Import IdP metadata" (paste URL or upload XML) that parses the federation metadata and fills entityId/SSO URL/certificate, keeping the fields visible + editable as the review step; default displayName per protocol ("Microsoft Entra ID (SAML)", "OIDC SSO", …). Validate the metadata server-side (size/schema) per the usual boundary rules.
Acceptance criteria
SAML setup can be completed by supplying a metadata URL or file — no hand-copied certificate
Parsed values land in the same editable fields (admin can review/override)
Display name defaults sensibly per protocol; still editable
Invalid/oversized metadata is rejected with a localized error
Related: #2116 (SSO hardening epic), #2310 (Entra error surfacing), #2383 (SSO form rebuild on settings primitives).
Activity