Yao
0e50fee996
fix(googlechat): log webhook auth reject reasons and warn on appPrincipal misconfig ( #71145 )
...
* fix(googlechat): log webhook auth reject reasons and warn on appPrincipal misconfig
Closes #71078
Webhook auth failures previously returned 401 with no log line, leaving
operators no signal to diagnose. Additionally, app-url audience requires
a numeric OAuth 2.0 client ID as appPrincipal, but a misconfigured email
or empty value silently caused all requests to be rejected.
Changes:
- Log a WARN with accountId and reject reason when verifyGoogleChatRequest fails.
- Add warnAppPrincipalMisconfiguration() called at provider init: warns when
audienceType=app-url and appPrincipal is missing or contains '@'.
Tests: +9 cases in monitor-webhook.test.ts (3 reject-reason scenarios + 4 warner cases).
* fix(googlechat): defer auth rejection logs
* docs: note googlechat webhook auth fix
---------
Co-authored-by: luyao618 <luyao618@users.noreply.github.com >
Co-authored-by: Peter Steinberger <steipete@gmail.com >
2026-04-24 20:10:57 +01:00
..
2026-04-24 04:24:08 +01:00
2026-04-23 05:22:16 +01:00
2026-04-20 13:16:40 +01:00
2026-04-24 16:55:08 +01:00
2026-04-24 16:09:36 +01:00
2026-04-24 16:09:36 +01:00
2026-04-24 11:52:35 -07:00
2026-04-24 05:46:25 +01:00
2026-04-24 12:08:34 +01:00
2026-04-23 23:29:51 -07:00
2026-04-24 16:55:08 +01:00
2026-04-24 16:55:08 +01:00
2026-04-24 05:46:25 +01:00
2026-04-24 05:46:25 +01:00
2026-04-23 23:11:34 +01:00
2026-04-24 18:34:01 +01:00
2026-04-23 18:16:20 -07:00
2026-04-20 13:16:40 +01:00
2026-04-23 04:29:35 +01:00
2026-04-24 19:07:41 +01:00
2026-04-23 15:41:45 -07:00
2026-04-24 09:36:35 -07:00
2026-04-24 16:55:08 +01:00
2026-04-24 18:16:58 +01:00
2026-04-23 05:30:49 +01:00
2026-04-24 19:55:20 +01:00
2026-04-21 02:34:24 +01:00
2026-04-21 00:54:08 +01:00
2026-04-24 16:55:08 +01:00
2026-04-24 16:55:08 +01:00
2026-04-24 16:09:36 +01:00
2026-04-24 16:09:36 +01:00
2026-04-24 19:33:44 +01:00
2026-04-24 18:51:39 +01:00
2026-04-24 20:10:57 +01:00
2026-04-24 19:33:44 +01:00
2026-04-22 06:11:49 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-22 23:16:57 +01:00
2026-04-24 15:12:37 +01:00
2026-04-24 05:46:25 +01:00
2026-04-24 16:09:36 +01:00
2026-04-23 13:16:41 +01:00
2026-04-20 13:16:40 +01:00
2026-04-24 16:55:08 +01:00
2026-04-24 16:09:36 +01:00
2026-04-24 16:55:08 +01:00
2026-04-24 16:55:08 +01:00
2026-04-24 12:43:06 +01:00
2026-04-20 13:16:40 +01:00
2026-04-24 16:55:08 +01:00
2026-04-24 16:55:08 +01:00
2026-04-24 16:55:08 +01:00
2026-04-21 00:24:18 +01:00
2026-04-20 13:16:40 +01:00
2026-04-22 06:11:49 +01:00
2026-04-23 05:48:49 +01:00
2026-04-24 05:46:25 +01:00
2026-04-24 16:55:08 +01:00
2026-04-22 06:47:51 +01:00
2026-04-24 06:10:07 +01:00
2026-04-23 18:16:20 -07:00
2026-04-24 16:55:08 +01:00
2026-04-20 13:16:40 +01:00
2026-04-24 19:33:44 +01:00
2026-04-20 13:16:40 +01:00
2026-04-23 04:00:17 +01:00
2026-04-24 01:39:19 +01:00
2026-04-23 02:20:10 +01:00
2026-04-21 02:34:24 +01:00
2026-04-17 10:14:00 +05:30
2026-04-24 16:55:08 +01:00
2026-04-24 06:07:17 +01:00
2026-04-23 16:49:53 +01:00
2026-04-21 02:41:26 +01:00
2026-04-24 17:58:14 +08:00
2026-04-22 06:11:49 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 20:55:39 +01:00
2026-04-23 05:30:49 +01:00
2026-04-24 16:55:08 +01:00
2026-04-24 16:55:08 +01:00
2026-04-24 00:05:38 +01:00
2026-04-20 13:16:40 +01:00
2026-04-23 05:30:49 +01:00
2026-04-20 13:16:40 +01:00
2026-04-17 10:14:00 +05:30
2026-04-24 16:55:08 +01:00
2026-04-24 18:22:24 +01:00
2026-04-24 05:46:25 +01:00
2026-04-21 00:32:42 +01:00
2026-04-22 21:42:53 -07:00
2026-04-24 16:55:08 +01:00
2026-04-20 23:04:10 +01:00
2026-04-22 08:52:55 +01:00
2026-04-21 00:40:07 +01:00
2026-04-20 20:55:39 +01:00
2026-04-24 05:46:25 +01:00
2026-04-20 13:16:40 +01:00
2026-04-24 00:52:53 +01:00
2026-04-24 16:55:08 +01:00
2026-04-24 05:46:25 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 16:34:48 +01:00
2026-04-23 15:48:10 -06:00
2026-04-24 09:45:58 -07:00
2026-04-24 19:33:44 +01:00
2026-04-20 13:16:40 +01:00
2026-04-22 06:11:49 +01:00
2026-04-24 16:07:53 +01:00
2026-04-24 16:55:08 +01:00
2026-04-17 02:23:49 -04:00
2026-04-20 22:09:16 +01:00
2026-04-09 23:59:00 +01:00
2026-04-20 22:09:16 +01:00