Skip to content

fix: reject AT from banned users - #2642

Merged
fadymak merged 1 commit into
masterfrom
fm/auth-1235-banned-user-token
Jul 28, 2026
Merged

fix: reject AT from banned users#2642
fadymak merged 1 commit into
masterfrom
fm/auth-1235-banned-user-token

Conversation

@fadymak

@fadymak fadymak commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Reject requests from from banned users with still-valid access tokens.

The following endpoints will be affected:

User & session

Method Path Handler
GET /user UserGet
PUT /user UserUpdate
GET /reauthenticate Reauthenticate
POST /logout Logout (now also blocked for banned users)

Identities & OAuth grants

Method Path Handler
GET /user/identities/authorize LinkIdentity
DELETE /user/identities/{identity_id} DeleteIdentity
GET /user/oauth/grants UserListOAuthGrants
DELETE /user/oauth/grants UserRevokeOAuthGrant
POST /token?grant_type=id_token (with link_identity=true) IdTokenGrant (via direct requireAuthentication call)

MFA / factors

Method Path Handler
POST /factors EnrollFactor
POST /factors/{factor_id}/challenge ChallengeFactor
POST /factors/{factor_id}/verify VerifyFactor
DELETE /factors/{factor_id} UnenrollFactor

Passkeys

Method Path Handler
POST /passkeys/registration/options PasskeyRegistrationOptions
POST /passkeys/registration/verify PasskeyRegistrationVerify
GET /passkeys PasskeyList
PATCH /passkeys/{passkey_id} PasskeyUpdate
DELETE /passkeys/{passkey_id} PasskeyDelete

OAuth server (OIDC)

Method Path Handler
GET /oauth/userinfo OAuthUserInfo
GET /oauth/authorizations/{authorization_id} OAuthServerGetAuthorization
POST /oauth/authorizations/{authorization_id}/consent OAuthServerConsent

@fadymak
fadymak requested a review from a team as a code owner July 23, 2026 11:25

@cstockton cstockton left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@fadymak
fadymak merged commit b6878c2 into master Jul 28, 2026
13 checks passed
@fadymak
fadymak deleted the fm/auth-1235-banned-user-token branch July 28, 2026 13:51
cstockton pushed a commit that referenced this pull request Aug 3, 2026
🤖 I have created a release *beep* *boop*
---


##
[2.195.0](v2.194.0...v2.195.0)
(2026-07-30)


### Features

* gate SCIM router behind an experimental feature flag
([#2639](#2639))
([0fde049](0fde049))


### Bug Fixes

* accept offline_access OAuth scope for MCP refresh clients
([#2630](#2630))
([059b86c](059b86c))
* **auditlogs:** add missing events to docs
([3e5d493](3e5d493))
* **auditlogs:** remove unused mfa code audit log events
([2909344](2909344))
* **auditlogs:** remove unused recovery codes audit log events
([d4ca02a](d4ca02a))
* persist last_sign_in_at on v2 refresh token issuance
([#2655](#2655))
([fc654b0](fc654b0))
* reject AT from banned users
([#2642](#2642))
([b6878c2](b6878c2))
* update google.golang.org/grpc to v1.82.1
([#2651](#2651))
([4a596c0](4a596c0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: supabase-releaser[bot] <223506987+supabase-releaser[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants