kshitijk4poor
8ad7ae06e7
test(mcp-oauth): bind the 400-recovery path to issuer binding, guard live-TTL on an empty context
...
The 400-recovery reload installs a disk pair and only then re-runs issuer
binding on it. When that pair was minted by a different issuer the enforcer
strips its refresh token, and the reload must report "no recovery" so the
session is cleared like any other dead grant. No test pinned that verdict:
a reload that ignored the install result would keep a stripped pair in the
context and return True. The new invariant drives a real 400 through
_handle_refresh_response against a foreign-bound disk pair and asserts the
result is False, the context is cleared, and the foreign refresh token does
not survive on disk.
_hermes_live_ttl read expires_in off current_tokens without checking for
None; getattr(None, ...) happened to yield the default and report "live".
Both current callers install a pair first, but the helper is now explicit
that an empty context is never live, so a future call site cannot adopt
nothing.
2026-09-15 10:50:13 +05:30
..
2026-09-14 17:34:31 -07:00
2026-09-14 22:01:32 +00:00
2026-09-13 05:09:43 -07:00
2026-09-15 00:41:13 +05:30
2026-09-14 09:19:25 -07:00
2026-09-11 19:39:12 -07:00
2026-09-14 06:02:05 -07:00
2026-09-14 06:02:05 -07:00
2026-09-13 05:08:29 -07:00
2026-09-14 17:29:32 -07:00
2026-09-14 17:04:56 -07:00
2026-09-13 05:09:06 -07:00
2026-09-14 21:18:47 +05:30
2026-09-12 01:35:05 -07:00
2026-09-10 10:35:07 -07:00
2026-09-10 10:35:07 -07:00
2026-09-11 19:39:12 -07:00
2026-09-13 12:35:36 -07:00
2026-09-12 08:43:28 -07:00
2026-09-06 23:31:05 +05:30
2026-09-10 10:35:07 -07:00
2026-09-11 15:44:00 -07:00
2026-09-13 14:41:26 -07:00
2026-09-13 12:35:36 -07:00
2026-09-13 05:09:43 -07:00
2026-09-11 15:44:00 -07:00
2026-09-14 16:13:51 -07:00
2026-09-13 05:09:43 -07:00
2026-09-05 18:46:53 +05:30
2026-09-10 10:35:07 -07:00
2026-09-11 19:39:12 -07:00
2026-09-07 08:18:56 -07:00
2026-09-13 21:30:02 -07:00
2026-09-13 21:31:57 -07:00
2026-09-08 02:26:05 +05:30
2026-09-13 21:31:57 -07:00
2026-09-11 19:39:12 -07:00
2026-09-10 10:23:12 -07:00
2026-09-06 12:02:43 -07:00
2026-09-13 21:05:42 -07:00
2026-09-11 11:54:49 -07:00
2026-09-13 21:05:42 -07:00
2026-09-11 15:29:15 -07:00
2026-09-09 11:46:36 -07:00
2026-09-07 00:28:46 +05:30
2026-09-12 20:52:49 -07:00
2026-09-14 16:13:51 -07:00
2026-09-11 15:44:00 -07:00
2026-09-12 21:55:07 -07:00
2026-09-13 21:03:11 -07:00
2026-09-13 21:03:11 -07:00
2026-09-11 19:39:12 -07:00
2026-09-05 13:51:06 -07:00
2026-09-13 14:37:17 -07:00
2026-09-13 14:37:17 -07:00
2026-09-12 12:32:55 -07:00
2026-09-13 19:19:36 -07:00
2026-09-10 02:21:16 +05:30
2026-09-12 10:00:06 +05:30
2026-09-07 08:22:35 -07:00
2026-09-13 20:43:33 -07:00
2026-09-15 10:50:13 +05:30
2026-09-15 10:50:13 +05:30
2026-09-10 02:21:16 +05:30
2026-09-11 19:39:12 -07:00
2026-09-13 05:09:43 -07:00
2026-09-13 15:41:01 -07:00
2026-09-13 20:45:25 -07:00
2026-09-13 15:41:01 -07:00
2026-09-11 15:27:23 -07:00
2026-09-13 06:29:12 -07:00
2026-09-12 01:35:05 -07:00
2026-09-13 15:41:01 -07:00
2026-09-07 22:47:33 +05:30
2026-09-13 20:44:29 -07:00
2026-09-11 15:27:23 -07:00
2026-09-13 06:29:12 -07:00
2026-09-13 20:45:25 -07:00
2026-09-13 15:41:01 -07:00
2026-09-12 20:43:42 -07:00
2026-09-09 12:19:13 +05:30
2026-09-13 20:46:22 -07:00
2026-09-12 21:13:40 -07:00
2026-09-14 16:12:07 -07:00
2026-09-11 19:58:07 -07:00
2026-09-13 14:35:32 -07:00
2026-09-14 08:10:36 -07:00
2026-09-14 20:44:56 -07:00
2026-09-12 22:09:19 -07:00
2026-09-11 15:26:46 -07:00
2026-09-14 16:13:51 -07:00
2026-09-07 08:14:51 -07:00
2026-09-11 11:54:49 -07:00
2026-09-11 15:26:46 -07:00
2026-09-11 06:24:11 -07:00
2026-09-12 01:35:05 -07:00
2026-09-09 12:19:13 +05:30
2026-09-11 11:54:49 -07:00
2026-09-14 21:55:24 -07:00
2026-09-13 05:09:43 -07:00
2026-09-13 05:09:43 -07:00
2026-09-07 05:59:43 -07:00
2026-09-11 11:54:49 -07:00
2026-09-11 11:54:49 -07:00
2026-09-12 21:50:30 -07:00
2026-09-06 07:17:03 -07:00
2026-09-11 11:54:49 -07:00
2026-09-06 07:17:03 -07:00
2026-09-06 07:17:03 -07:00
2026-09-13 05:07:50 -07:00
2026-09-13 14:31:21 -07:00
2026-09-06 13:32:51 +05:30
2026-09-07 12:50:29 -07:00
2026-09-05 19:01:22 +05:30
2026-09-07 06:05:51 -07:00
2026-09-15 10:48:49 +05:30
2026-09-11 11:19:53 +05:30
2026-09-11 15:29:15 -07:00
2026-09-10 11:48:01 -07:00
2026-09-14 16:16:08 -07:00
2026-09-12 01:35:05 -07:00
2026-09-11 15:26:46 -07:00
2026-09-11 15:44:00 -07:00
2026-09-13 05:09:43 -07:00
2026-09-11 19:39:12 -07:00
2026-09-13 21:04:08 -07:00
2026-09-10 02:21:16 +05:30
2026-09-15 00:41:13 +05:30
2026-09-12 10:00:08 +05:30
2026-09-13 05:07:50 -07:00
2026-09-13 05:09:43 -07:00
2026-09-13 05:07:50 -07:00
2026-09-13 05:07:50 -07:00
2026-09-13 05:32:38 -07:00
2026-09-13 05:07:50 -07:00
2026-09-13 05:07:50 -07:00
2026-09-13 12:35:36 -07:00
2026-09-13 09:18:54 -07:00
2026-09-13 14:46:38 -07:00
2026-09-13 05:07:50 -07:00
2026-09-11 19:14:24 -07:00
2026-09-13 14:39:29 -07:00
2026-09-13 05:07:11 -07:00
2026-09-12 21:30:38 -07:00
2026-09-05 18:46:16 +05:30
2026-09-13 05:07:11 -07:00
2026-09-13 12:35:36 -07:00
2026-09-13 05:07:50 -07:00