feat(ui): Show OAuthConsent org selector from user:org:read scope#8415
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: c11d614 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 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 |
📝 WalkthroughWalkthroughThis PR adds a changeset for a minor release and updates OAuthConsent so organization selection is gated by the resolved presence of the Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
|
!snapshot |
|
Hey @wobsoriano - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/astro@3.0.22-snapshot.v20260429150611 --save-exact
npm i @clerk/backend@3.4.2-snapshot.v20260429150611 --save-exact
npm i @clerk/chrome-extension@3.1.19-snapshot.v20260429150611 --save-exact
npm i @clerk/clerk-js@6.7.8-snapshot.v20260429150611 --save-exact
npm i @clerk/dev-cli@0.1.1-snapshot.v20260429150611 --save-exact
npm i @clerk/expo@3.2.5-snapshot.v20260429150611 --save-exact
npm i @clerk/expo-passkeys@1.0.18-snapshot.v20260429150611 --save-exact
npm i @clerk/express@2.1.10-snapshot.v20260429150611 --save-exact
npm i @clerk/fastify@3.1.20-snapshot.v20260429150611 --save-exact
npm i @clerk/hono@0.1.20-snapshot.v20260429150611 --save-exact
npm i @clerk/localizations@4.5.6-snapshot.v20260429150611 --save-exact
npm i @clerk/msw@0.0.18-snapshot.v20260429150611 --save-exact
npm i @clerk/nextjs@7.2.8-snapshot.v20260429150611 --save-exact
npm i @clerk/nuxt@2.2.9-snapshot.v20260429150611 --save-exact
npm i @clerk/react@6.4.6-snapshot.v20260429150611 --save-exact
npm i @clerk/react-router@3.1.8-snapshot.v20260429150611 --save-exact
npm i @clerk/shared@4.8.6-snapshot.v20260429150611 --save-exact
npm i @clerk/tanstack-react-start@1.1.8-snapshot.v20260429150611 --save-exact
npm i @clerk/testing@2.0.22-snapshot.v20260429150611 --save-exact
npm i @clerk/ui@1.7.0-snapshot.v20260429150611 --save-exact
npm i @clerk/upgrade@2.0.3-snapshot.v20260429150611 --save-exact
npm i @clerk/vue@2.0.19-snapshot.v20260429150611 --save-exact |
…isplaying-org-selector
| const redirectUrl = ctx.redirectUrl ?? getRedirectUriFromSearch(); | ||
|
|
||
| const hasOrgReadScope = scopes.some(s => s.scope === USER_ORG_READ_SCOPE); | ||
| const orgSelectionEnabled = !!((hasOrgReadScope || ctx.enableOrgSelection) && organizationSettings.enabled); |
There was a problem hiding this comment.
The new scope takes precedence over __internal_enableOrgSelection when present, so we can safely remove the flag in a follow-up PR once confirmed working.
…isplaying-org-selector
…isplaying-org-selector
…isplaying-org-selector
…isplaying-org-selector
Description
The org selector previously relied on the
__internal_enableOrgSelectionflag. It now also activates whenuser:org:read(ref) is present in the granted scopes, which is the long-term path forward. The flag is kept as a fallback so existing callers aren't broken. Theuser:org:readscope is filtered from the visible scopes list, consistent with howoffline_accessis handled.will remove
__internal_enableOrgSelectionin a follow up PR once we updated our dashboard consent page which the CLI app uses.Resolves USER-5239
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change