René's URL Explorer Experiment


Title: improvement(sso): fix provider lookup, migrate UI to emcn, add enterprise SSO docs by waleedlatif1 · Pull Request #4238 · simstudioai/sim · GitHub

Open Graph Title: improvement(sso): fix provider lookup, migrate UI to emcn, add enterprise SSO docs by waleedlatif1 · Pull Request #4238 · simstudioai/sim

X Title: improvement(sso): fix provider lookup, migrate UI to emcn, add enterprise SSO docs by waleedlatif1 · Pull Request #4238 · simstudioai/sim

Description: Summary Fixed MOCK_PROVIDER always blocking real provider data from being displayed Fixed multi-org provider lookup using server-side getUserOrganization (could return wrong org) — now passes organizationId as query param from the active org context Added orgId to Zod schemas in register route so it's no longer stripped before DB insert Fixed SAML callback URL derivation (was using IdP issuer URL instead of getBaseUrl()) Fixed mutation error messages always showing "undefined" — now reads error.error || error.details Changed onSuccess → onSettled for cache invalidation so it fires on both success and error Extracted showAdvanced from formData into own useState (was leaking UI state into API payload) Added Cancel button in edit mode and disabled Update button when no changes have been made (hasChanges() dirty check) Migrated SSO settings UI to emcn components (FormField, Expandable, toast) Enabled organizationProvisioning in Better Auth SSO plugin so SSO users are auto-added to orgs Added full enterprise SSO docs page with provider guides (Okta, Azure AD, Google Workspace, ADFS), FAQ, and self-hosted setup Type of Change Bug fix Improvement Testing Tested manually Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Fixed MOCK_PROVIDER always blocking real provider data from being displayed Fixed multi-org provider lookup using server-side getUserOrganization (could return wrong org) — now passes orga...

X Description: Summary Fixed MOCK_PROVIDER always blocking real provider data from being displayed Fixed multi-org provider lookup using server-side getUserOrganization (could return wrong org) — now passes orga...

Opengraph URL: https://github.com/simstudioai/sim/pull/4238

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:915e5669-5968-f112-6efa-fd5587c81f54
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB6D6:330459:42F002:5FBDFB:6AFB3CAC
html-safe-noncef7094fe6b799895a9b1361ce05ba3ad49ee3bca93e3d897368bf157016630371
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkQ2OjMzMDQ1OTo0MkYwMDI6NUZCREZCOjZBRkIzQ0FDIiwidmlzaXRvcl9pZCI6IjM1NjA5NTg0MDQ4MTU2OTkxMTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac69acf0b2f6bbb244c9084521d8d7a83300a563f83e3ae028f722d782ebf6df5c
hovercard-subject-tagpull_request:3557555314
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/4238/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Fixed MOCK_PROVIDER always blocking real provider data from being displayed Fixed multi-org provider lookup using server-side getUserOrganization (could return wrong org) — now passes orga...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2169b0dfbef67ed6b128074a5ed45bb7d5d1859783b10178b09a7765ad5f3693
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3b4fc8df5ef1c6757e733a23e6b81b6725021823
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/4238/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4238%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4238%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/4238/files
Reloadhttps://github.com/simstudioai/sim/pull/4238/files
Reloadhttps://github.com/simstudioai/sim/pull/4238/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
improvement/ssohttps://github.com/simstudioai/sim/tree/improvement/sso
Conversation 62 https://github.com/simstudioai/sim/pull/4238
Commits 16 https://github.com/simstudioai/sim/pull/4238/commits
Checks 13 https://github.com/simstudioai/sim/pull/4238/checks
Files changed https://github.com/simstudioai/sim/pull/4238/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4238/files
improvement(sso): fix provider lookup, migrate UI to emcn, add enterprise SSO docs https://github.com/simstudioai/sim/pull/4238/files#top
Show all changes 16 commits https://github.com/simstudioai/sim/pull/4238/files
2f64885 improvement(sso): fix provider lookup, migrate UI to emcn, add enterp… waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/2f64885c3db72fea64a53310716ab9e48f1f84be
6183a98 fix(sso): add org membership guard on providers route, fix idpMetadat… waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/6183a98cae947dcf136bfd08c86800da943d2d4d
b4e3a98 fix(sso): add org membership guard on register route, fix SP entityID… waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/b4e3a988326ec3ae424fc42b96ead3e97be5cc73
613756d fix(sso): fix SAML script callbackUrl and SP entityID to use app base… waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/613756d3bc72718b5a6babd53164f2b0b05fbb37
1b3693d fix(sso): correct SAML callback URL path in script header comment waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/1b3693d47bec74b3916203ed424a361ef82cd922
ef82fcd fix(sso): restrict SSO provider read/write to org owners and admins waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/ef82fcd6826beb3d71d616e98b216731c8a15516
1739a4e docs(sso): restructure page, fix provider guide accuracy, add externa… waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/1739a4e148d7ba39de256e6a14bccb63e3fa0688
2f2d8bb fix(sso): correct SAML callback path and generate idpMetadata from ce… waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/2f2d8bb6ef38a6d763610deb237626a4eae042e1
e94f803 fix(sso): always require NEXT_PUBLIC_APP_URL for SAML SP metadata ent… waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/e94f8039356308d656c3fb89cd896bded907b94d
28e5fea fix(sso): scope provider query to org only when organizationId is pro… waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/28e5fea9e19f5b72eb57527f7712c7bb7aed9c0b
6831389 fix(sso): escape XML special chars in script idpMetadata generation waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/68313894c6d43ff45967b2e8037e7e493757783d
b0e38f6 fix(sso): final audit corrections — saml mapping, xml escaping, self-… waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/b0e38f61c4269b656b6019d2d55e6e399c334470
93b52e3 fix(sso): redact oidc client secret in providers response, add self-h… waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/93b52e35905ba9cf45c7e37515567313da414970
b70ea44 fix(sso): scope redacted-secret lookup to caller's org or userId waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/b70ea444c4f0495aa09df595669fb99a0fb55bf8
cd0fc46 fix(sso): null out oidcConfig on parse failure to prevent unredacted … waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/cd0fc46a7ab5c07e86e3a12f68c26cd62a8b1205
aeafa27 fix(sso): use issuer as entityID in auto-generated idp metadata xml waleedlatif1 Apr 20, 2026 https://github.com/simstudioai/sim/pull/4238/commits/aeafa2765a57ba52feb76c0860ab012640d1f7ce
Clear filters https://github.com/simstudioai/sim/pull/4238/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4238/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4238/files
index.mdx https://github.com/simstudioai/sim/pull/4238/files#diff-46bb2c0a2be75ec65643bd47993959861663c6fcf92a8aca0c21e529675d410e
meta.json https://github.com/simstudioai/sim/pull/4238/files#diff-0751b8fcd5ce65858f61395eddfdfd01e4623027829cca226fa4b1f217072364
sso.mdx https://github.com/simstudioai/sim/pull/4238/files#diff-bade541a41f563ad989dbd6d95398fe1d71812bff33ea8bd2fb419ab4309d4c3
meta.json https://github.com/simstudioai/sim/pull/4238/files#diff-72563470f7ee04c28e7298360f84864606dd4b0bfbcdd01034ac06a6cbbbb15e
sso-form.png https://github.com/simstudioai/sim/pull/4238/files#diff-7b79fb6497eace660b810fee0178c5bb6189df4996b686edf94287dcdc1355e2
route.ts https://github.com/simstudioai/sim/pull/4238/files#diff-0a6047704ce756d89c3c31872188f03a21b235ae94333fb60a47acc2616088fb
route.ts https://github.com/simstudioai/sim/pull/4238/files#diff-9c7c8c68e412f03f38ccb4dc51f2ab7a802d67c6d9c9b6de615e4509aafabe7c
sso-settings.tsx https://github.com/simstudioai/sim/pull/4238/files#diff-ab0807277e5cd6d53813e9eb72605df2cf6737dc34e17903c162ff777f228ac9
sso.ts https://github.com/simstudioai/sim/pull/4238/files#diff-ef4d5bd17c55765d206935d0c2da406420e4cbc29b7aaf1836028d4637c2f508
auth.ts https://github.com/simstudioai/sim/pull/4238/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
register-sso-provider.ts https://github.com/simstudioai/sim/pull/4238/files#diff-49c7d2db2f91dddae11f8d4448d4c47f292652a03e79bdf4e48fc52ce46f07da
apps/docs/content/docs/en/enterprise/index.mdxhttps://github.com/simstudioai/sim/pull/4238/files#diff-46bb2c0a2be75ec65643bd47993959861663c6fcf92a8aca0c21e529675d410e
View file https://github.com/simstudioai/sim/blob/aeafa2765a57ba52feb76c0860ab012640d1f7ce/apps/docs/content/docs/en/enterprise/index.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4238/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4238/files#diff-46bb2c0a2be75ec65643bd47993959861663c6fcf92a8aca0c21e529675d410e
https://github.com/simstudioai/sim/pull/4238/files#diff-46bb2c0a2be75ec65643bd47993959861663c6fcf92a8aca0c21e529675d410e
apps/docs/content/docs/en/enterprise/meta.jsonhttps://github.com/simstudioai/sim/pull/4238/files#diff-0751b8fcd5ce65858f61395eddfdfd01e4623027829cca226fa4b1f217072364
View file https://github.com/simstudioai/sim/blob/aeafa2765a57ba52feb76c0860ab012640d1f7ce/apps/docs/content/docs/en/enterprise/meta.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4238/{{ revealButtonHref }}
apps/docs/content/docs/en/enterprise/sso.mdxhttps://github.com/simstudioai/sim/pull/4238/files#diff-bade541a41f563ad989dbd6d95398fe1d71812bff33ea8bd2fb419ab4309d4c3
View file https://github.com/simstudioai/sim/blob/aeafa2765a57ba52feb76c0860ab012640d1f7ce/apps/docs/content/docs/en/enterprise/sso.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4238/{{ revealButtonHref }}
apps/docs/content/docs/en/meta.jsonhttps://github.com/simstudioai/sim/pull/4238/files#diff-72563470f7ee04c28e7298360f84864606dd4b0bfbcdd01034ac06a6cbbbb15e
View file https://github.com/simstudioai/sim/blob/aeafa2765a57ba52feb76c0860ab012640d1f7ce/apps/docs/content/docs/en/meta.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4238/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4238/files#diff-72563470f7ee04c28e7298360f84864606dd4b0bfbcdd01034ac06a6cbbbb15e
https://github.com/simstudioai/sim/pull/4238/files#diff-72563470f7ee04c28e7298360f84864606dd4b0bfbcdd01034ac06a6cbbbb15e
apps/docs/public/static/enterprise/sso-form.pnghttps://github.com/simstudioai/sim/pull/4238/files#diff-7b79fb6497eace660b810fee0178c5bb6189df4996b686edf94287dcdc1355e2
View file https://github.com/simstudioai/sim/blob/aeafa2765a57ba52feb76c0860ab012640d1f7ce/apps/docs/public/static/enterprise/sso-form.png
Open in desktop https://desktop.github.com
Reload?https://github.com/simstudioai/sim/pull/4238/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4238/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4238/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.