Repository navigation
feat(studio): add custom OIDC option to third-party auth providers - #51612
Conversation
Add a "Custom OIDC" entry to the Add provider menu on the Third-Party Auth page. It opens a dialog that registers any OIDC issuer URL through the existing create mutation. Issuers that do not match a known provider are now listed (previously hidden) with their issuer URL, and can be deleted like the other providers. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe
|
The latest updates on your projects. Learn more about Vercel for GitHub.
6 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎭 Playwright Test Results (tanstack)Details
Flaky testsFeatures › database.spec.ts › Database › Schema Visualizer › table actions work as expected Skipped testsFeatures › api-access-toggle.spec.ts › API Access Toggle › shows Manage access link when editing an existing table |
Trim the Custom OIDC dialog to a one-line description plus a single helper line about OIDC discovery, and switch the provider icon to badge-check. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe
Documents the Dashboard flow (Authentication > Sign In / Providers > Third-Party Auth > Add provider > Custom OIDC) and the Management API alternative, following the structure of the Firebase Auth guide. Links the page from the third-party auth overview and adds a sidebar entry. Supersedes the draft docs PR #51611. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe
…note Replace the curl example with a link to the Management API reference and move the CLI note into its own section. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe
Braintrust eval report
|
Register the Command Center as a Custom OIDC provider on each tenant project (new Dashboard feature from supabase/supabase#51612) so PostgREST validates CC-issued JWTs natively via JWKS. Tenant data functions drop the jose dependency and manual createRemoteJWKSet/jwtVerify calls. JWT claims are decoded locally (no signature check) for response metadata; cryptographic validation and RLS enforcement happen in PostgREST. Service role key replaced with anon key + user JWT so RLS scopes queries automatically. README gains a setup step for registering the OIDC provider via the new Dashboard UI, updates the "Adding a new tenant" guide, and cleans up the tech stack section. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Requested by Stojan Dimitrovski · Slack thread
Problem
The Management API accepts any OIDC issuer for third-party auth (
POST /v1/projects/{ref}/config/auth/third-party-authwithoidc_issuer_url), but the Dashboard only offers Firebase, Clerk, WorkOS, Auth0 and Amazon Cognito. Users with another OIDC provider have no way to register it from the Dashboard.Studio also hides any issuer it does not recognize:
IntegrationCardreturnsnullfor thecustomtype, so an issuer added through the API never shows up in the list and cannot be deleted from the Dashboard.Solution
CreateCustomOidcDialogwith a single required Issuer URL field. It reusesuseCreateThirdPartyAuthIntegrationMutation, so query invalidation and the error toast behave like the other providers. The URL is sent as typed after trimming whitespace.isValidOidcIssuerUrlhelper inThirdPartyAuthForm.utils.ts: the value must be anhttps://URL with a host, no query string, no fragment, and no embedded credentials./.well-known/openid-configuration.IntegrationCardnow renders custom issuers (badge-check icon, "Custom OIDC" label, Issuer URL, Delete integration) instead of hiding them. Delete uses the existing flow and permission check.customlabel changes from "Custom" to "Custom OIDC".apps/docs/content/guides/auth/third-party/custom-oidc.mdx(served at/docs/guides/auth/third-party/custom-oidc). It covers the Dashboard flow, the Management API alternative, theroleclaim, client setup, and RLS. It is linked from the third-party auth overview and added to the docs sidebar. This supersedes the draft docs PR docs(auth): add custom OIDC provider guide for third-party auth #51611.Not included: UI for
jwks_urlandcustom_jwks. The page and menu keep the same feature gate (authentication:third_party_auth) and the same permission checks as the other providers.Before: the Add provider menu lists five providers. An issuer that is not one of them is registered only through the API and does not appear in the Dashboard.
After: the menu has a sixth item, Custom OIDC. It opens a dialog that takes an issuer URL, rejects non-HTTPS values with an inline message, and registers the issuer. The new provider appears in the list and can be deleted from there.
Review instructions
http://example.comand submit. The field shows an inline error and no request is sent.Local checks:
vitest --run components/interfaces/Auth/ThirdPartyAuthForm: 20 tests pass (validation helper unit tests plus dialog component tests with MSW).tsc --noEmitinapps/studio: no new errors.I did not run the dialog in a browser against a real project, so there are no screenshots. The docs app was not built or rendered locally.
Checklist
/write-the-docsor/edit-the-docsskill, which applies the docs style guide🤖 Generated with Claude Code
https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe
Generated by Claude Code