Repository navigation
feat(ui,clerk-js,shared,localizations): manage trusted identity providers from OrganizationProfile - #11065
Draft
brkalow wants to merge 4 commits into
Draft
feat(ui,clerk-js,shared,localizations): manage trusted identity providers from OrganizationProfile#11065brkalow wants to merge 4 commits into
brkalow wants to merge 4 commits into
Conversation
…ders from OrganizationProfile
Add a "Trusted identity providers" section to the Security page of
<OrganizationProfile />, gated on org:sys_trusted_issuers:manage. Admins
can trust their IdP as an ID-JAG issuer, see each issuer's status and
last use or refusal, and edit or remove it.
Expose organization.oauthTrustedIssuers in clerk-js for the FAPI
/organizations/{id}/oauth_trusted_issuers routes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…issuer for trusted identity providers Cover two clerk_go API additions in the trusted identity providers section: - access_token_ttl: a "Token lifetime" select on create and edit. On update, null or 0 removes the cap. - Optional issuer on create when the picked enterprise connection is OIDC with a discovery URL. The connection picker now comes first, and the issuer field becomes optional with a caption naming the connection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed issuer form The enterprise connection and token lifetime pickers are not form controls, so a 422 naming enterprise_connection_id or access_token_ttl matched no field and was dropped, leaving the form open with no message. Show it as the card error instead, as SelectProviderStep does. Also fall back to the "Never used" badge for a status the UI does not know, so a new backend state cannot crash the Security page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
…s in the trusted issuer form A Claude organization's issuer (https://identity.anthropic.com/issuers/<id>) takes no tenant, JWKS URL or enterprise connection, and clerk_go returns 422 on each. The form now recognizes that issuer shape, hides those inputs, explains why, and never sends them, on create or edit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 0c05e51 The changes in this PR will be included in the next version bump. This PR includes changesets to release 24 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This branch was successfully deployed
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.
Description
Adds a "Trusted identity providers" section to the Security page of
<OrganizationProfile />(Linear AIE-2146). It is the self-serve path for MCP enterprise-managed authorization: an organization admin trusts their company's identity provider (for example Okta) as an ID-JAG issuer for their organization, and AI clients can then reach the application's MCP server for that organization's members without a consent screen. It sits next to self-serve enterprise SSO on the same page.Depends on unmerged backend work. This needs the clerk_go stack for MCP enterprise-managed authorization (ID-JAG): the FAPI
/v1/organizations/{id}/oauth_trusted_issuersroutes, theorg:sys_trusted_issuers:managesystem permission,access_token_ttl, and the optional issuer on create. Keep this PR in draft until they merge.clerk_go PRs:
access_token_ttland the optional issuer inferred from an OIDC connection: https://github.com/clerk/clerk_go/pull/24866What admins see:
org:sys_trusted_issuers:manage. Clerk seeds that permission only when the instance has the ID-JAG grant turned on, and the permission alone is enough to show the Security tab. If the routes answer 403feature_not_enabled, the section hides itself.audience_mismatch (received https://other.example.com)), with a hint to check the app's settings in the identity provider.https://identity.anthropic.com/issuers/<id>, matched with the same rule clerk_go uses) hides the tenant, JWKS URL and connection fields, with a caption explaining why, and never sends them. Clerk reads Claude's keys from the issuer itself and matches members by verified email, and it refuses those three fields with a 422.For custom flows,
clerk-jsexposes the routes on the organization:Where the API shaped the UI, and where review would help:
org:sys_trusted_issuers:managealone. If an instance turns the ID-JAG grant off but members keep the permission, a member with no other Security capability sees an empty page, since the section hides onfeature_not_enabled. That depends on whether clerk_go removes the permission with the grant.To try it, you need a clerk_go build from the stack above with the ID-JAG grant on for the instance, and a member holding
org:sys_trusted_issuers:manage. Open<OrganizationProfile />, go to Security, and add a provider.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
✎
🤖 Generated with Claude Code