[PR #852] [MERGED] [stable32] feat: notify admin when whatsapp is unauthenticated #857

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

📋 Pull Request Information

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

Base: stable32Head: backport/850/stable32


📝 Commits (9)

  • d26c001 feat(exception): add AlreadyLoggedInException for WhatsApp pairing flow
  • 08d3bca feat(exception): add ApiConnectionException for WhatsApp API errors
  • c67475a feat(events): add WhatsAppAuthenticationErrorEvent for authentication failures
  • 5aaaaa7 feat(listener): add NotificationListener to notify admins of WhatsApp auth failures
  • da9173d feat(notification): add Notifier to format WhatsApp authentication error notifications
  • 7bc41d3 feat(app): register WhatsApp event listener and notifier in Application bootstrap
  • 301d48a refactor(gateway): replace triple return type with explicit exceptions
  • c561fd2 chore(psalm): update baseline for new exception classes
  • 6ef63fd 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/852 **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:** `stable32` ← **Head:** `backport/850/stable32` --- ### 📝 Commits (9) - [`d26c001`](https://github.com/nextcloud/twofactor_gateway/commit/d26c001cb25eec338ced6df078555efeb2121350) feat(exception): add AlreadyLoggedInException for WhatsApp pairing flow - [`08d3bca`](https://github.com/nextcloud/twofactor_gateway/commit/08d3bca37671b37d3823e9522d05ff9ac31c0adf) feat(exception): add ApiConnectionException for WhatsApp API errors - [`c67475a`](https://github.com/nextcloud/twofactor_gateway/commit/c67475a766cb1fcffc595f0aaf44859a337ba84e) feat(events): add WhatsAppAuthenticationErrorEvent for authentication failures - [`5aaaaa7`](https://github.com/nextcloud/twofactor_gateway/commit/5aaaaa724f1beebe44d96a081ee7b49ef0243e8f) feat(listener): add NotificationListener to notify admins of WhatsApp auth failures - [`da9173d`](https://github.com/nextcloud/twofactor_gateway/commit/da9173dc0c0a38ef895865f0d299aa3ee4e46d80) feat(notification): add Notifier to format WhatsApp authentication error notifications - [`7bc41d3`](https://github.com/nextcloud/twofactor_gateway/commit/7bc41d39d2865d699ae22a192abfd6564dec7216) feat(app): register WhatsApp event listener and notifier in Application bootstrap - [`301d48a`](https://github.com/nextcloud/twofactor_gateway/commit/301d48aabf129fa18597e6c485199940222d5677) refactor(gateway): replace triple return type with explicit exceptions - [`c561fd2`](https://github.com/nextcloud/twofactor_gateway/commit/c561fd23062715117496d9519ff151cb77dc868c) chore(psalm): update baseline for new exception classes - [`6ef63fd`](https://github.com/nextcloud/twofactor_gateway/commit/6ef63fdd40d866b55e16bd652d78288bc3a05a3e) 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:22 +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#857
No description provided.