kshitijk4poor
473407174b
test(dashboard): assert server still gates OAuth endpoints without cookie
...
PR #61281 removed the client-side X-Hermes-Session-Token requirement from the
dashboard OAuth mutation calls so cookie-authenticated hosted/mobile sessions
can start provider logins. That change is safe only because the server still
gates those endpoints (gated_auth_middleware cookie check + _require_token).
The PR's api.test.ts suite mocks fetch and only asserts client behavior, so a
re-break of the gated-mode cookie gate would pass CI unnoticed.
Add gated-mode TestClient tests asserting POST /api/env/reveal and the OAuth
mutation endpoints (disconnect/start/submit/cancel) return 401 with no session
cookie. Mutation-verified: neutering both the middleware gate and _require_token
flips all five to 200.
2026-07-09 12:21:16 +05:30
..
2026-06-28 05:49:21 -07:00
2026-07-01 02:18:56 -07:00
2026-06-28 20:46:44 -07:00
2026-07-02 13:17:41 -07:00
2026-07-02 13:17:41 -07:00
2026-07-01 04:57:40 -07:00
2026-07-07 15:12:54 -07:00
2026-07-02 13:17:41 -07:00
2026-06-26 19:23:33 +05:30
2026-07-06 11:17:41 -07:00
2026-06-27 11:45:07 -07:00
2026-06-27 15:59:00 -07:00
2026-07-01 23:51:54 +05:30
2026-07-05 04:34:14 -07:00
2026-07-05 14:41:40 -07:00
2026-07-07 02:39:54 -07:00
2026-07-03 20:18:00 +05:30
2026-06-29 21:12:36 -07:00
2026-07-05 00:44:15 -07:00
2026-06-30 03:27:41 -07:00
2026-07-06 02:21:32 -07:00
2026-07-06 12:26:21 -07:00
2026-07-03 04:23:15 +05:30
2026-07-05 00:55:51 -07:00
2026-07-02 04:51:56 +05:30
2026-07-08 08:10:55 -07:00
2026-06-29 04:25:18 -07:00
2026-06-26 19:15:18 -07:00
2026-06-29 04:25:18 -07:00
2026-07-09 12:21:16 +05:30
2026-07-06 03:18:02 -07:00
2026-06-26 19:15:18 -07:00
2026-07-03 20:18:00 +05:30
2026-07-09 12:21:16 +05:30
2026-06-27 10:08:13 +10:00
2026-07-01 00:38:17 -07:00
2026-07-01 02:18:56 -07:00
2026-06-30 17:29:23 -07:00
2026-07-01 01:25:43 -07:00
2026-07-02 19:52:18 -05:00
2026-06-28 22:53:56 -07:00
2026-06-28 18:53:00 -07:00
2026-07-01 02:48:36 -07:00
2026-07-05 13:42:46 -07:00
2026-06-27 15:59:00 -07:00
2026-06-28 04:09:54 -07:00
2026-06-28 18:05:28 -05:00
2026-06-27 22:26:43 -07:00
2026-07-05 05:35:44 -07:00
2026-07-07 15:12:54 -07:00
2026-07-01 16:25:48 -05:00
2026-06-25 21:46:58 -07:00
2026-06-27 21:21:54 -07:00
2026-06-25 21:46:58 -07:00
2026-06-25 16:40:26 -05:00
2026-06-28 02:44:04 -07:00
2026-06-27 03:43:38 -07:00
2026-07-05 19:10:00 -07:00
2026-07-06 03:18:07 -07:00
2026-06-27 04:59:23 +05:30
2026-07-07 04:09:35 -07:00
2026-07-05 23:00:34 +05:30
2026-07-03 00:22:49 -07:00
2026-07-03 03:33:06 -07:00
2026-07-06 02:46:24 -07:00
2026-07-06 13:08:50 -07:00
2026-07-03 00:46:45 -07:00
2026-06-27 21:23:25 -07:00
2026-06-24 19:34:33 +05:30
2026-07-01 05:06:00 -07:00
2026-07-02 06:52:46 +00:00
2026-07-07 00:53:56 -07:00
2026-07-06 11:10:51 -07:00
2026-06-27 21:23:25 -07:00
2026-07-07 21:13:19 -07:00
2026-07-01 04:05:15 -07:00
2026-07-06 04:38:17 -07:00
2026-07-06 11:20:47 -07:00
2026-07-07 15:14:30 -07:00
2026-07-05 00:48:50 -07:00
2026-06-24 07:46:54 -07:00
2026-06-25 16:40:26 -05:00
2026-06-25 16:40:26 -05:00
2026-07-05 19:13:20 -07:00
2026-07-05 11:44:53 +05:30
2026-06-27 21:23:25 -07:00
2026-06-25 13:52:06 -07:00
2026-06-27 19:49:02 -07:00
2026-06-27 15:59:00 -07:00
2026-07-07 00:53:48 -07:00
2026-07-03 03:33:06 -07:00
2026-07-07 02:32:32 -07:00
2026-06-30 17:58:52 -05:00
2026-06-29 21:33:00 +10:00
2026-07-07 12:36:41 -07:00
2026-07-07 13:29:58 -07:00
2026-07-05 22:04:52 -07:00
2026-07-03 13:44:00 -07:00
2026-07-05 23:01:10 -07:00
2026-07-07 15:12:49 -07:00
2026-07-05 14:51:49 -07:00
2026-06-24 17:56:30 +05:30
2026-07-05 13:42:46 -07:00
2026-06-29 01:02:53 -07:00
2026-07-02 04:59:02 -07:00
2026-06-30 04:38:43 -07:00
2026-07-08 07:09:08 -07:00
2026-07-07 16:27:28 -07:00
2026-06-26 14:07:43 +05:30
2026-07-07 21:13:19 -07:00
2026-07-07 05:12:24 -07:00
2026-06-25 21:39:29 -06:00
2026-06-27 11:43:01 -07:00
2026-06-28 02:40:37 -07:00
2026-07-05 19:35:30 -07:00
2026-07-03 04:08:37 -07:00
2026-07-03 04:23:15 +05:30
2026-06-28 17:02:05 -05:00
2026-07-01 05:25:33 -07:00
2026-07-09 12:21:16 +05:30
2026-07-03 20:18:00 +05:30
2026-07-09 01:19:07 +05:30
2026-07-04 17:58:05 +05:30
2026-07-08 00:20:13 +00:00
2026-06-28 16:29:52 -05:00
2026-07-07 13:54:07 -07:00
2026-07-09 01:19:07 +05:30
2026-06-28 03:58:18 -07:00
2026-07-03 15:22:43 -05:00
2026-07-09 01:36:46 +05:30
2026-07-08 08:10:55 -07:00
2026-07-07 17:45:51 -07:00
2026-07-02 13:17:41 -07:00
2026-07-02 13:17:41 -07:00