mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
docs/reference-template
17
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
be27ad8cf5 |
feat(studio): show apps and confirm token access changes (#53917)
> [!WARNING] > This PR relies on #53705 being merged first. ## Problem Project admins need to see authorised apps before changing token access. [DEPR-734](https://linear.app/supabase/issue/DEPR-734) ## Solution - Show Apps below Members only when authorised apps exist; hide the section while loading or empty, and retain verification errors. - Show access levels and links to each app’s access sheet. - Include members and authorised apps in toggle confirmations; wait for complete counts and offer retry on errors. | After | | --- | | <img width="725" height="560" alt="CleanShot 2026-12-02 at 14 44 13" src="https://github.com/user-attachments/assets/6f033b2f-a8b4-4a64-824f-ef0cc270ff6c" /> | | No authorised apps (no empty state) | | <img width="728" height="773" alt="CleanShot 2026-12-02 at 14 11 31" src="https://github.com/user-attachments/assets/76b31461-abca-4f9a-b76d-bb664093dd67" /> | | Loading error | | <img width="727" height="749" alt="CleanShot 2026-12-02 at 14 38 34" src="https://github.com/user-attachments/assets/0722002c-a5cf-4877-b00b-15f9e4a6524c" /> | | 1× authorised app | | <img width="418" height="222" alt="CleanShot 2026-12-02 at 14 39 27" src="https://github.com/user-attachments/assets/db5cc89a-2099-4a6f-969c-b4e2c38ac972" /> | | Disabling token access whilst 1× app is relying on it | | <img width="424" height="387" alt="CleanShot 2026-12-02 at 14 39 58" src="https://github.com/user-attachments/assets/e15c1227-8190-42f4-876b-5f55a321848b" /> | | Re-enabling token access which will immediately restore access for N members and apps | ## Review instructions 1. Open the [staging preview](https://studio-staging-git-dnywh-depr-734-temporary-acc-b81819-supabase.vercel.app/dashboard), select a project you administer, and open **Database → Settings**. Enable database token access in **Feature previews**, plus `jitDbAccess` and `enableScopedOAuthManage` in the dev toolbar’s **Flags** tab if needed. 2. Open DevTools → **Console**, paste the setup below and run it. Navigate to another Studio page (possibly outside of Database) and back to **Database → Settings**, without reloading. Check **Test Partner App** appears under Apps with **Read and write** access. 3. Turn token access off. Check the confirmation includes the app, then choose **Cancel**. 4. Run `tokenAccessReview.state = 'disabled'` in Console, then navigate away and back. Turn token access on, expand **Who will regain access?**, check the app is listed, then choose **Cancel**. 5. Run `tokenAccessReview.state = 'enabled'; tokenAccessReview.fail = true`, then navigate away and back. Check the Apps error disables the toggle. Run `tokenAccessReview.fail = false` and choose **Retry apps** to recover. 6. Run `tokenAccessReview.apps = false`, then navigate outside Database and back. Check Apps is hidden once loaded. Reload to remove the setup. The setup mocks GET responses only, requires no app authorisation, and does not change saved access. Use **Cancel** in both confirmations. Do not reload between steps; reloading removes the setup. Network’s Response tab does not show these browser-generated responses. <details> <summary>Console setup</summary> ```js (() => { if (window.tokenAccessReview) throw new Error('Review setup is already active. Reload to reset it.') const projectRef = location.pathname.match(/\/project\/([^/]+)/)?.[1] if (!projectRef) throw new Error('Open a project’s Database Settings first.') const appId = '75e64165-b74e-432f-bb70-80d6ae432f06' const grantId = 'review-org-grant' const scopes = ['database_token_access:write'] const originalFetch = window.fetch const review = window.tokenAccessReview = { state: 'enabled', apps: true, fail: false } const approvals = /\/platform\/organizations\/[^/]+\/oauth\/approvals$/ const grants = new RegExp(`/platform/organizations/[^/]+/oauth/approvals/${appId}/grants$`) const page = (data) => Response.json({ data, links: { next: null, prev: null } }) window.fetch = function (input, init) { const url = new URL(input instanceof Request ? input.url : input, location.href) const method = init?.method ?? (input instanceof Request ? input.method : 'GET') if (method.toUpperCase() === 'GET') { if (url.pathname.endsWith(`/v1/projects/${projectRef}/jit-access`)) { return Promise.resolve(Response.json({ state: review.state, appliedSuccessfully: true })) } if (approvals.test(url.pathname)) { return Promise.resolve(page(review.apps ? [{ id: appId, type: 'oauth_app', attributes: { app: { name: 'Test Partner App', icon: null, created_by: null }, last_approved_at: '', target: 'organization', org_grant: { grant_id: grantId, approved_scopes: scopes, approved_at: '' }, }, }] : [])) } if (grants.test(url.pathname)) { if (review.fail) return Promise.resolve(Response.json({ message: 'Review: apps unavailable' }, { status: 500 })) return Promise.resolve(page([{ id: grantId, type: 'oauth_grant', attributes: { kind: 'organization_bound', user: null, approved_at: '', approved_scopes: scopes, projects: [{ ref: projectRef, name: 'Review project' }], }, }])) } } return originalFetch.call(this, input, init) } })() ``` </details> --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
4dbb966b2e |
feat(studio): show Trusted Partner access on OAuth consent (#53583)
> [!WARNING] > Live readiness checks require [CTRL-2277](https://linear.app/supabase/issue/CTRL-2277) in the target environment; production deployment is pending. ## Problem Trusted Partner consent must explain direct database access and project blockers before authorisation. [DEPR-732](https://linear.app/supabase/issue/DEPR-732) ## Solution - Show Direct database access alongside the requested permissions. - Check selected projects, or every project page for organisation-wide grants. - Separate blocking issues from SSL notices; block authorisation during loading or errors and offer retry. | After | | --- | | <img width="1280" height="1323" alt="Authorize API Access Supabase" src="https://github.com/user-attachments/assets/adb6367a-bace-4b62-81b5-68ba4c11396c" /> | | Consent screen with Direct database access (previously “Table data”) and Database management | | <img width="1280" height="1323" alt="Authorize API Access Supabase" src="https://github.com/user-attachments/assets/0c35900c-1059-49cd-b1c5-4e0cf5441b9b" /> | | Selected-project blockers and the separate SSL notice | | <img width="1280" height="1323" alt="95741" src="https://github.com/user-attachments/assets/1fbef4f0-0433-4c93-b390-84d210dfb665" /> | | Organisation-wide blockers _without_ project-removal actions | ## Review instructions 1. Open the [staging consent screen](https://studio-staging-git-dnywh-depr-732-trusted-partn-f24cfb-supabase.vercel.app/dashboard/authorize?auth_id=11666aa8-7f7e-4705-b33a-981903fd682e). Enable `enableScopedOAuthConsent` in the dev toolbar’s **Flags** tab if needed. 2. Open Chrome DevTools → **Network** and reload. Select the **GET** request ending in `/platform/oauth/authorizations/{id}`. 3. Right-click that request → **Override content**. Choose a local folder and click **Allow**. Add `database_token_access:read` and `database_token_access:write` to `scopes`. Use only the read scope to check read-only access. Keep every other field, save with **Cmd/Ctrl+S**, then reload with DevTools open. 4. Select projects. Override each **GET** request ending in `/platform/organizations/{slug}/oauth/authorizations/{id}/projects/{ref}/database-access`. Use `{"issues":[],"enables_ssl":false}` for ready projects, then `{"issues":[],"enables_ssl":true}` for an SSL notice. Save and reload after each change. Check Direct database access and Database management are separate, and SSL alone allows authorisation. 5. Change a readiness response to `{"issues":["postgres_upgrade_required","platform_unsupported"],"enables_ssl":true}`. Save and reload. Check blockers prevent authorisation, SSL stays separate, and removing a blocked project clears its blockers. 6. Set `project_scoping_mode: false` in the authorisation override. Save and reload. Check any blocked project prevents organisation-wide authorisation, with no project-removal actions. 7. Block a database-access request in Network and reload. Check authorisation stays disabled. Unblock it and choose **Retry checks**. 8. For a returning app, override `existing_grant.approved_scopes` in the request ending in `/preflight`. Save and reload. Check added, removed and unchanged permissions. 9. Disable **Sources → Overrides → Enable Local Overrides**. Repeat ready and blocked project checks with a real staging authorisation before approving live readiness behaviour. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
05cbf8ca50 |
feat(studio): show Trusted Partner access in Authorized Apps (#53705)
## Problem Organisation admins need to see authorised apps’ direct database access. [DEPR-731](https://linear.app/supabase/issue/DEPR-731) ## Solution - Show the approved direct-access level in Authorized apps. - Show permissions and project coverage in **View access**. | After | | --- | | <img width="1280" height="813" alt="OAuth Apps Organization Settings Basket Supabase" src="https://github.com/user-attachments/assets/d2bbc682-6e6f-462f-b5c2-3a2a8ff813ba" /> | | Authorized apps list showing read-only direct access | | <img width="1280" height="813" alt="OAuth Apps Organization Settings Basket Supabase (4)" src="https://github.com/user-attachments/assets/24506547-461a-44e0-880f-6ade23fd734c" /> | | Authorized apps list showing read-write direct access | | <img width="1280" height="813" alt="OAuth Apps Organization Settings Basket Supabase (1)" src="https://github.com/user-attachments/assets/53ac2662-9fb7-4cfc-b118-31ef5778b339" /> | | View access sheet with permission groups and project coverage | | <img width="1280" height="813" alt="OAuth Apps Organization Settings Basket Supabase (3)" src="https://github.com/user-attachments/assets/a21cefa7-c656-4b5c-bb0c-075c724350f9" /> | | View access sheet with permission groups and project coverage | | <img width="424" height="297" alt="CleanShot 2026-12-02 at 15 09 39" src="https://github.com/user-attachments/assets/e1f83068-21a8-43c4-9ca8-dcf6a3164b01" /> | | Added second paragraph for revoking access to apps with direct database access. This “existing connections will close shortly” is only accurate one CTRL-2141 merges, as discussed [here](https://github.com/supabase/supabase/pull/53705/changes#r4764576735). | ## Review instructions 1. Open the [staging preview](https://studio-staging-git-dnywh-depr-731-authorized-apps-supabase.vercel.app/dashboard), select a test organisation and open **Apps** (`/dashboard/org/{slug}/apps`). Enable `enableScopedOAuthManage` in the Studio dev toolbar’s **Flags** tab if needed. 2. Open Chrome DevTools → **Network** and reload. Select the **GET** request ending in `/platform/organizations/{slug}/oauth/approvals`. 3. Right-click that request → **Override content**. Choose a local folder and click **Allow**. For an existing organisation-bound app, add `database_token_access:read` to `attributes.org_grant.approved_scopes`. Keep every other field, save with **Cmd/Ctrl+S**, then reload with DevTools open. 4. Open the app’s **View access**. Override the **GET** request ending in `/platform/organizations/{slug}/oauth/approvals/{app_id}/grants`. Add the same scope to the matching grant’s `attributes.approved_scopes`. Save and reload. 5. Check read-only direct access in the list and access sheet. Change the scope to `database_token_access:write` in both overrides, save and reload. Check read-write access and compare it with a standard app. 6. Compare the grants response’s existing `attributes.projects` list with `null` for all projects. Save and reload after each change. Check permission groups, project coverage and the app ID in **View access**. 7. Open **Revoke access**, check the existing OAuth access explanation, then choose **Cancel**. 8. Disable **Sources → Overrides → Enable Local Overrides**. Repeat with real authorised staging apps. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
4442d91d77 |
feat(studio): Wire org and users authorized apps list to backend (#53674)
## Description Part of the work for OAuth apps with the scoped permissions. This PR wires the org and users authorized apps lists to backend. |
||
|
|
10488ed799 |
feat(studio): Wire the OAuth apps consent screen to the backend (#53511)
## Description
Part of the work for OAuth apps with the scoped permissions. This PR
wires consent screen to the backend.
## Review instructions
### Setup
Copy the `examples/oauth-app-authorization-flow/.env.example` to
`examples/oauth-app-authorization-flow/.env`
> [!IMPORTANT]
> In next steps, make sure to copy the apps ids/secrets in the
`examples/oauth-app-authorization-flow/.env` with a way to differentiate
them:
> ```
> # org bound all projects
> SUPABASE_CLIENT_ID=xxx
> SUPABASE_CLIENT_SECRET=xxx
> ```
As an organization admin, go to the _Organization settings/OAuth Apps_
and create the following _Publishable apps_:
- `test_org_bound`:
- _Use the permissions of the person who connects_ unchecked
- _Ask for specific projects_ unchecked
- Select only _Database Read_ for the permissions
- `test_org_bound_projects`:
- _Use the permissions of the person who connects_ unchecked
- _Ask for specific projects_ checked
- Select only _Database Read_ for the permissions
- `test_member_bound`:
- _Use the permissions of the person who connects_ checked
- _Ask for specific projects_ unchecked
- Select only _Database Read/Write_ for the permissions
- `test_member_bound_projects`:
- _Use the permissions of the person who connects_ checked
- _Ask for specific projects_ checked
- Select only _Database Read/Write_ for the permissions
Make sure you have 3 projects in the org. Add a team member that have
Administration rights on the first project, read-only access to the 2nd
and no access to the third.
Install the `examples/oauth-app-authorization-flow` dependencies and
start the app.
- `test_org_bound`:
- connected on studio as the org admin
- click the `oauth-app-authorization-flow` button
- check that you don't have to select a project on the consent screen
- check that the permissions requested are correct and you can approve
the app
- update the published app to include the _Database Write_ permissions
- return to the `oauth-app-authorization-flow` index and click its
button again
- check that the consent screen shows the permissions difference and
approve it again
- connected as a simple team member, check that you have a message
indicating you can't approve this app
- `test_org_bound_projects`:
- connected on studio as the org admin
- click the `oauth-app-authorization-flow` button
- check that you have to select projects on the consent screen
- check that the permissions requested are correct and you can approve
the app
- update the published app to include the _Database Write_ permissions
- return to the `oauth-app-authorization-flow` index and click its
button again
- check that the consent screen shows the permissions difference and
approve it again
- connected as a simple team member, check that you have a message
indicating you can't approve this app
- `test_member_bound`:
- connected on studio as a member
- click the `oauth-app-authorization-flow` button
- check that you don't have to select a project on the consent screen
- check that the permissions requested are correct and you can approve
the app
- update the published app to add another permission
- return to the `oauth-app-authorization-flow` index and click its
button again
- check that the consent screen shows the permissions difference and
approve it again
- `test_member_bound_projects`:
- connected on studio as the org admin
- click the `oauth-app-authorization-flow` button
- check that you have to select projects on the consent screen (you
should see only the two you have access to) and select them all one by
one
- check that the permissions requested are correct
- approve the app and check that you have an error related to the
project with read-only access
- unselect it and approve the app
- update the published app to include the _Database Write_ permissions
- return to the `oauth-app-authorization-flow` index and click its
button again
- check that the consent screen shows the permissions difference and
approve it again
|
||
|
|
7b37f0c774 |
feat(studio): update oauth apps mocks and UI to the latest API payloads formats (#53363)
## Description Part of the work for OAuth apps with the scoped permissions. This PR: - Update the mock data to the new format returned or expected by the backend - Remove unnecessary hooks that have their feature merged in another one (`useOAuthOrgAppDetailsQuery` is now merged in `useOAuthAppsPreflightValidationQuery`) > [!NOTE] > At this stage, the UI still only use mock data ## Review instructions If all tests pass, we're good. |
||
|
|
b58913895c |
feat(studio): Refactor OAuth app consent screen for project selection (#53361)
## Description Part of the work for OAuth apps with the scoped permissions. This PR: - Update `<MultiSelector>` to allow consumers to react to search terms changes - Refactor OAuth app consent screen to ensure we can load projects asynchronously with an infinite list and server side filtering > [!NOTE] > At this stage, the UI still only use mock data ## Review instructions If all tests pass, we're good. |
||
|
|
45f4a115fa |
feat(studio): Refactor oauth app consent screen (#53357)
## Description Part of the work for OAuth apps with the scoped permissions. This PR: - refactors the authorize OAuth app consent screen to make it more consistant with how we handle load requests - remove the copy constants in favor of direct JSX like we do everywhere - ensure the data hooks have optional parameters with runtime check to be usable even when all needed data isn't loaded yet > [!NOTE] > At this stage, the UI still only use mock data ## Review instructions If all tests pass, we're good. |
||
|
|
676ea140ef |
refactor(studio): align OAuth role validation failure types with the API (#52532)
## Problem
The scoped OAuth consent screen is still mock-backed, and its types for
`role_validation_failed` responses don't match what the platform API
will return. The API reports only the role level (`owner`,
`administrator`, `developer`, `read-only` or `no-access`) in each
failure, not the full role object, and project failures carry no `name`.
## Solution
- `OAuthScopeValidationResult` uses `{ name: 'owner' | 'administrator' |
'developer' | 'read-only' | 'no-access' }` for `role` in all three
`scope_target` variants, and project failures drop `name`.
- The mock approval and preflight responses build that shape from the
mock org roles.
- `types.test.ts` fixtures follow the new shape.
The consent screen only reads `ref` from project failures, so there is
no UI change.
The types are hand-written until the API change that introduces this
shape lands and `api-types` is regenerated.
Verification: `vitest run data/oauth-apps
components/interfaces/Organization/OAuthApps` (115 passed). `tsc
--noEmit` reports one error in `packages/ui-patterns`, which also occurs
without this change.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
|
||
|
|
df742bdb3b |
refactor(studio): rename ResponseError to StudioError (#52707)
## What
Moves the `ResponseError` class (`types/base.ts`) and the classified
error classes (`types/api-errors.ts`) into
`lib/errors/studio-errors.ts`, and renames `ResponseError` to
`StudioError`.
## Why
Studio's error classification is being expanded to cover errors that
don't come from API responses (thrown network failures, aborted
requests, unexpected client errors). The API-specific name and location
no longer fit. Landing the rename on its own keeps the follow-up PR,
which introduces the classified error model, small and reviewable.
## Notes for reviewers
- Mechanical change, no behavior change. Most of the diff is a one-line
import change per file plus import re-sorting by Prettier.
- Files that only use the type now use `import type { StudioError }`.
- `ResponseError` is no longer re-exported from `@/types`; there are no
compatibility shims at the old paths.
- Unrelated identifiers like `QueryResponseError` and
`parseResponseErrors` are unchanged.
|
||
|
|
c81d8eab49 |
fix(studio): build oauth app grant mocks without iterator helpers (#52379)
`data/oauth-apps/mocks.ts` built a mock list with
`Array(50).keys().map(...)`, which needs `Iterator.prototype.map`
(Safari 18.4+, Chrome 122+, Firefox 131+). The array is built when the
module loads, not only when mocks are enabled, and `AccountLayout`
imports `USE_MOCKS` from this module. On older browsers every
`/account/*` page (plus the org OAuth apps page, `/account/apps` and
`/authorize`) crashes into the global error boundary with
`Array(50).keys().map is not a function`.
**Changed:**
- Build the 50 mock grants with `Array.from({ length: 50 }, …)`. Same
data, works everywhere.
This was the only chained iterator-helper call in `apps/` and
`packages/`.
## To test
- On the preview, open `/dashboard/account/me` in Safari 18.3 or earlier
(or any browser without iterator helpers): the page renders instead of
the error screen
- In a current browser, `/dashboard/account/me` and the org OAuth apps
page still render as before
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
|
||
|
|
4bf7b16473 |
feat(studio): scoped oauth apps reconsent UI (#51078)
## Problem When users must grant access to an app they already added because its scopes changed, they should have a clear understanding of the changes ## Solution Show only the scopes differences by default <img width="844" height="962" alt="image" src="https://github.com/user-attachments/assets/6289f4cf-200f-4660-b9a1-aedbaaa963e3" /> ## Review instructions Try this UI with [`authorize?mock_scenario=reconsent`](https://studio-staging-git-gildasgarcia-oauth-apps-inte-6106b6-supabase.vercel.app/dashboard/authorize?mock_scenario=reconsent) --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
88bc1ac384 |
feat(studio): oauth apps users own grant list in account settings (#50903)
## Purpose Users now have an _apps_ page in their account settings allowing them to see their own grants, the projects they affect and to disconnect an app. This PR only uses mock data. Besides, the page and menu item are behind a feature flag enabled on staging <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions - In _Account/OAuth Apps_, you should see a list of apps <img width="748" height="359" alt="image" src="https://github.com/user-attachments/assets/8c50a467-e2c1-4000-aecf-09d5db1591d3" /> - Each app should have a menu entry allowing to disconnect it (fake for now) <img width="587" height="278" alt="image" src="https://github.com/user-attachments/assets/6221fbd6-3b61-4d93-903e-9aedaf94de3f" /> - Each app but the last should have a menu entry that opens a dialog to see the connected projects <img width="657" height="651" alt="image" src="https://github.com/user-attachments/assets/e985f933-fdfb-4d28-93c3-b3678d7d8a53" /> --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
690ef5e7f7 |
feat(studio): scoped oauth apps, admins can see an app grants (#50979)
## Problem Admins need to see the grants associated to an approved OAuth application that uses scoped tokens. ## Solution - Add a menu to the org settings oauth approved apps rows to see the grant list - Update the react query hook to use infinite query for the grant list <img width="1149" height="356" alt="image" src="https://github.com/user-attachments/assets/2e6cfc76-5584-4447-aa19-a0bf103e2218" /> <img width="429" height="395" alt="image" src="https://github.com/user-attachments/assets/dd811d33-2c0a-46df-b9e9-3cbf8ad2fa7f" /> <img width="434" height="267" alt="image" src="https://github.com/user-attachments/assets/108905ba-4dcb-4dca-abe2-1a4e1fc3dbd2" /> ## Review instructions In Org Settings/OAuth apps, you should see a menu button for each app that contains a _View grants_ item. Clicking this item should open a dialog with the grants --------- Co-authored-by: kemal <hello@kemal.earth> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
12ab771e86 |
feat(studio): authorized apps table in org settings (#50529)
<img width="1150" height="669" alt="image" src="https://github.com/user-attachments/assets/0b324577-bed5-4272-a7e0-f4444a0c1230" /> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com> |
||
|
|
454a232947 |
feat(studio): scoped oauth interstitial ui (#50090)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? The scoped OAuth consent interstitial: scope display, org/project selection, consent screen assembly, success screen, and post-submit role-validation error state. Consolidates the former stacked PRs #49481, #49484, #49486, #49489, #49951 into one reviewable unit (each contained the last; no code was dropped). - Entirely behind `useFlag('oauthAppScopedGrants')` — no reachable UI with the flag off. - Runs on the mock data layer from #49476 (`USE_MOCKS`-gated); no real endpoints are called. - Covers PROD-626, PROD-627, PROD-628, PROD-629, PROD-653. Base is #49476 (data contracts + mocks); will retarget to master once it merges. --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com> |
||
|
|
0c2257fb3d |
feat(studio): scoped oauth data layer (#49476)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? ~~This is the first part (and ultimately the final part of the stacked PR). PR 1 introduces mock data for us while we build the requirements of the scoped oauth interstitial, all following PR's will be stacked on top of this one.~~ This is the first part, the data layer side. We began with mock data, but as backend support arrived we've used this PR to help us shape the UI as well as the frontend data layer. This now acts as the frontend data layer. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added OAuth app authorization request handling. * Added visibility into application details, requested scopes, and existing authorizations. * Added organization and project selection during authorization. * Added organization roles and project access details. * Added approval and denial options with secure redirect handling. * Added validation for required authorization details and project selections. * Added support for role validation feedback during approval. * Added representative authorization scenarios for approved, denied, and re-consent flows. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com> Co-authored-by: Samir Ketema <6003000+samirketema@users.noreply.github.com> |