FeatureFuel
1

OAuth 2.1 server: let projects keep client tokens away from /auth/v1/user and the MFA endpoints

Source: supabase/supabase#53132 · opened by @StanBDH
We evaluated the OAuth 2.1 server (beta) as the authorization server of an MCP server, so that our users could connect an AI assistant to their data. We stopped before opening it to anyone, because of what an issued token can do on the Auth API. The docs say that OAuth access tokens have the same access as regular session tokens, and that RLS (with the client_id claim) is the way to narrow them. That works for the Data API. It does not reach the Auth endpoints, and we found no setting or hook that does. What we measured (hosted project, 8 November 2026; client registered with dynamic client registration; authorization code flow with PKCE S256; the access token carried client_id, amr = oauth_provider/authorization_code and role = authenticated) 1. PUT /auth/v1/user with the client's access token, changing user_metadata: 200. We restored the value afterwards. 2. POST /auth/v1/factors with the same token, enrolling a TOTP factor: 200. A third-party client that the user approved o…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests