[PR #851] [MERGED] [stable31] feat: notify admin when whatsapp is unauthenticated #854

Closed
opened 2026-02-26 06:32:21 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nextcloud/twofactor_gateway/pull/851
Author: @backportbot[bot]
Created: 1/28/2026
Status: Merged
Merged: 1/28/2026
Merged by: @vitormattos

Base: stable31Head: backport/850/stable31


📝 Commits (9)

  • 196b33d feat(exception): add AlreadyLoggedInException for WhatsApp pairing flow
  • 23f6181 feat(exception): add ApiConnectionException for WhatsApp API errors
  • 9943f21 feat(events): add WhatsAppAuthenticationErrorEvent for authentication failures
  • 90dff99 feat(listener): add NotificationListener to notify admins of WhatsApp auth failures
  • 46ee9d9 feat(notification): add Notifier to format WhatsApp authentication error notifications
  • 259b21b feat(app): register WhatsApp event listener and notifier in Application bootstrap
  • f84e079 refactor(gateway): replace triple return type with explicit exceptions
  • aa6f467 chore(psalm): update baseline for new exception classes
  • e734db5 chore: remove unused files

📊 Changes

6 files changed (+177 additions, -0 deletions)

View changed files

📝 lib/AppInfo/Application.php (+6 -0)
lib/Events/WhatsAppAuthenticationErrorEvent.php (+15 -0)
lib/Listener/NotificationListener.php (+78 -0)
lib/Notification/Notifier.php (+65 -0)
📝 lib/Provider/Channel/GoWhatsApp/Gateway.php (+5 -0)
📝 tests/psalm-baseline.xml (+8 -0)

📄 Description

Backport of PR #850


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nextcloud/twofactor_gateway/pull/851 **Author:** [@backportbot[bot]](https://github.com/apps/backportbot) **Created:** 1/28/2026 **Status:** ✅ Merged **Merged:** 1/28/2026 **Merged by:** [@vitormattos](https://github.com/vitormattos) **Base:** `stable31` ← **Head:** `backport/850/stable31` --- ### 📝 Commits (9) - [`196b33d`](https://github.com/nextcloud/twofactor_gateway/commit/196b33dd4c1e8e9599a87cbff1963f7d9e3007e5) feat(exception): add AlreadyLoggedInException for WhatsApp pairing flow - [`23f6181`](https://github.com/nextcloud/twofactor_gateway/commit/23f6181db79d3991f91ace4f5a705f1b6c905e67) feat(exception): add ApiConnectionException for WhatsApp API errors - [`9943f21`](https://github.com/nextcloud/twofactor_gateway/commit/9943f217916f4be5e42be10dce8c7c50d3f8d8dd) feat(events): add WhatsAppAuthenticationErrorEvent for authentication failures - [`90dff99`](https://github.com/nextcloud/twofactor_gateway/commit/90dff9907b89c4d6442ad8c1b5db2e136cd4de8d) feat(listener): add NotificationListener to notify admins of WhatsApp auth failures - [`46ee9d9`](https://github.com/nextcloud/twofactor_gateway/commit/46ee9d98d6700039976b5fd1db864a78edb47807) feat(notification): add Notifier to format WhatsApp authentication error notifications - [`259b21b`](https://github.com/nextcloud/twofactor_gateway/commit/259b21bf65a559a8bb81e996116b5c7c6f046006) feat(app): register WhatsApp event listener and notifier in Application bootstrap - [`f84e079`](https://github.com/nextcloud/twofactor_gateway/commit/f84e0792b04747a840114b25db1a76db242f6f93) refactor(gateway): replace triple return type with explicit exceptions - [`aa6f467`](https://github.com/nextcloud/twofactor_gateway/commit/aa6f4674e98de7d45355f9809e408c9b37bc0461) chore(psalm): update baseline for new exception classes - [`e734db5`](https://github.com/nextcloud/twofactor_gateway/commit/e734db5c88be5d5f6b4eaf86d1509077f83be010) chore: remove unused files ### 📊 Changes **6 files changed** (+177 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `lib/AppInfo/Application.php` (+6 -0) ➕ `lib/Events/WhatsAppAuthenticationErrorEvent.php` (+15 -0) ➕ `lib/Listener/NotificationListener.php` (+78 -0) ➕ `lib/Notification/Notifier.php` (+65 -0) 📝 `lib/Provider/Channel/GoWhatsApp/Gateway.php` (+5 -0) 📝 `tests/psalm-baseline.xml` (+8 -0) </details> ### 📄 Description Backport of PR #850 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 06:32:21 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/twofactor_gateway-nextcloud#854
No description provided.