• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / auth / 43444166152
72%

Build:
DEFAULT BRANCH: master
Ran 13 Nov 2026 02:40PM UTC
Jobs 1
Files 208
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Nov 2026 02:35PM UTC coverage: 71.768%. Remained the same
43444166152

push

github

web-flow
fix: allow OAuth client tokens on GET /user, keep modifying actions blocked (#2926)

## What

#2898 restricted OAuth client access tokens to OAuth endpoints. That
also blocked `GET /user`, which breaks existing projects that read the
user with these tokens (e.g. `supabase.auth.getUser()`).

This PR **temporarily** allows OAuth client access tokens on `GET /user`
only. All modifying actions still reject them with `403
no_authorization`:

- `PUT /user`
- `/user/identities/*`, `/user/oauth/grants`
- `/factors/*`, `/passkeys/*`
- `/logout`, `/reauthenticate`
- `/admin/*`, `/invite`

## How

The `/user` group used to apply `requireAuthentication` to every route
in it. Now each route sets its own middleware: `GET /user` uses
`requireAuthenticationAllowOAuthClient`, and every other `/user` route
keeps `requireAuthentication`. A comment on the route group says that
new `/user` routes must add `requireAuthentication`.

## Note: this is temporary

`GET /user` returns `app_metadata`, the full `user_metadata`, identities
and factors. That is more than the scopes an OAuth client is granted. We
are reopening it for now so existing projects don't break. We will
revisit this soon and reject OAuth client tokens on `/user` entirely.
OAuth clients should move to `GET /oauth/userinfo`.

## Tests

`TestOAuthClientTokenRouteAccess` now covers:

- `GET /user` and `/oauth/userinfo` return 200 with an OAuth client
token.
- The modifying endpoints above return 403 with an OAuth client token.
- A rejected `PUT /user` leaves the user unchanged.

6 of 6 new or added lines in 1 file covered. (100.0%)

16813 of 23427 relevant lines covered (71.77%)

517.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 43444166152.1 13 Nov 2026 02:40PM UTC 208
71.77
GitHub Action Run
Source Files on build 43444166152
  • Tree
  • List 208
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3e79d851 on github
  • Prev Build on master (#43105513098)
  • Next Build on master (#43894268024)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc