Bobby Ho
7a57b17b7b
fix: make OAuth2 refresh token redemption single-use under concurrency ( #28752 )
...
Make OAuth2 refresh token redemption single-use under concurrency using DELETE ... RETURNING, ensuring exactly one request succeeds and losing requests return invalid_grant. Remove the redundant API-key lookup to prevent 500s on missing keys, explicitly use READ COMMITTED for both grant transactions, and replace whitespace-only stored-scope echoes with a fixed error message. Add regression coverage for concurrent redemption, revoked or missing keys, and invalid stored scopes.
2026-09-11 12:47:55 -07:00
..
2025-01-20 17:25:31 +00:00
2026-08-26 11:57:56 -06:00
2026-09-11 12:47:55 -07:00
2026-09-11 14:24:32 +00:00
2026-09-11 14:24:32 +00:00
2026-09-11 12:47:55 -07:00
2026-09-11 12:47:55 -07:00
2026-09-11 11:32:15 -05:00
2026-09-10 13:54:11 +02:00
2026-08-21 23:46:27 -06:00
2026-07-02 16:53:36 +01:00
2026-05-15 09:39:05 +02:00
2026-05-14 17:18:50 +01:00
2026-09-11 14:24:32 +00:00
2024-07-11 11:26:47 -05:00
2026-07-07 00:25:42 -05:00
2026-09-11 12:47:55 -07:00
2026-02-03 17:52:07 +00:00
2026-08-11 13:53:15 +02:00
2026-08-11 13:53:15 +02:00
2026-08-24 11:20:25 +01:00
2026-09-11 14:24:32 +00:00
2024-08-26 15:04:04 +00:00
2026-08-18 21:12:44 -07:00
2026-04-30 10:27:53 -07:00
2026-04-30 10:27:53 -07:00
2026-09-11 14:24:32 +00:00
2025-08-07 11:00:31 +10:00
2026-09-11 14:24:32 +00:00
2026-03-05 22:32:18 +02:00
2026-08-21 23:46:27 -06:00
2026-08-27 21:04:13 +00:00
2026-09-09 10:16:24 +02:00
2026-08-18 21:12:44 -07:00
2026-09-11 14:24:32 +00:00
2026-09-11 14:24:32 +00:00
2026-09-11 14:24:32 +00:00
2026-09-11 14:24:32 +00:00
2025-05-22 19:48:23 +10:00
2025-07-09 09:46:31 +02:00
2025-03-26 01:56:39 -05:00
2026-09-11 12:47:55 -07:00
2026-09-11 12:47:55 -07:00
2026-08-18 12:40:33 +07:00
2026-09-11 12:47:55 -07:00
2026-09-10 14:07:03 +02:00
2026-08-24 09:30:01 +00:00
2024-10-25 12:14:15 -04:00
2024-10-25 12:14:15 -04:00
2026-08-24 11:53:47 +01:00
2026-09-11 14:24:32 +00:00
2026-05-20 00:09:09 +02:00