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.
Comments
Similar requests
OAuth 2.1 server: no way to require MFA (aal2) for OAuth client access tokens
1 vote · 0 comments
Provide option to set up 2FA/MFA with REST APIs
2 votes · 0 comments
Add an "Access Tokens" link to the profile dropdown in the dashboard
1 vote · 0 comments
Supabase cli to accept oauth tokens
2 votes · 0 comments
Auth: Auto-enforce AAL2 at API gateway level for MFA-enrolled users
1 vote · 0 comments
No comments yet.