Commit b6878c2
authored
fix: reject AT from banned users (#2642)
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` |1 parent 0fde049 commit b6878c2
2 files changed
Lines changed: 62 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
312 | 316 | | |
313 | 317 | | |
314 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
0 commit comments