[PR #4088] [MERGED] [PM-13396] Show error when logging into an unofficial Bitwarden server #61941

Closed
opened 2026-05-12 01:14:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/4088
Author: @SaintPatrck
Created: 10/14/2024
Status: Merged
Merged: 10/17/2024
Merged by: @SaintPatrck

Base: mainHead: PM-13396/unofficial-server-errors


📝 Commits (3)

  • b7d810a [PM-13396] Show error when logging into an unofficial Bitwarden server
  • 9acfe7d Merge remote-tracking branch 'origin/main' into PM-13396/unofficial-server-errors
  • e78af53 Formatting

📊 Changes

14 files changed (+396 additions, -36 deletions)

View changed files

📝 app/src/main/java/com/x8bit/bitwarden/data/auth/repository/AuthRepositoryImpl.kt (+8 -1)
📝 app/src/main/java/com/x8bit/bitwarden/data/auth/repository/di/AuthRepositoryModule.kt (+3 -0)
📝 app/src/main/java/com/x8bit/bitwarden/data/auth/repository/model/LoginResult.kt (+5 -0)
📝 app/src/main/java/com/x8bit/bitwarden/data/platform/datasource/disk/model/ServerConfig.kt (+7 -1)
📝 app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/enterprisesignon/EnterpriseSignOnViewModel.kt (+12 -0)
📝 app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/login/LoginViewModel.kt (+12 -0)
📝 app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/loginwithdevice/LoginWithDeviceViewModel.kt (+13 -0)
📝 app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/twofactorlogin/TwoFactorLoginViewModel.kt (+13 -0)
📝 app/src/main/res/values/strings.xml (+2 -1)
📝 app/src/test/java/com/x8bit/bitwarden/data/auth/repository/AuthRepositoryTest.kt (+93 -32)
📝 app/src/test/java/com/x8bit/bitwarden/ui/auth/feature/enterprisesignon/EnterpriseSignOnViewModelTest.kt (+67 -1)
📝 app/src/test/java/com/x8bit/bitwarden/ui/auth/feature/login/LoginViewModelTest.kt (+38 -0)
📝 app/src/test/java/com/x8bit/bitwarden/ui/auth/feature/loginwithdevice/LoginWithDeviceViewModelTest.kt (+63 -0)
📝 app/src/test/java/com/x8bit/bitwarden/ui/auth/feature/twofactorlogin/TwoFactorLoginViewModelTest.kt (+60 -0)

📄 Description

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-13396

📔 Objective

Displays a specific error message when login fails against an unrecognized Bitwarden server, helping users identify the issue. This message indicates that the server may not be a genuine Bitwarden instance, suggesting they check with their provider or update their server URL.

📸 Screenshots

TODO

Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

🔄 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/bitwarden/android/pull/4088 **Author:** [@SaintPatrck](https://github.com/SaintPatrck) **Created:** 10/14/2024 **Status:** ✅ Merged **Merged:** 10/17/2024 **Merged by:** [@SaintPatrck](https://github.com/SaintPatrck) **Base:** `main` ← **Head:** `PM-13396/unofficial-server-errors` --- ### 📝 Commits (3) - [`b7d810a`](https://github.com/bitwarden/android/commit/b7d810a577d5438dfddbbad90830a04a265026fb) [PM-13396] Show error when logging into an unofficial Bitwarden server - [`9acfe7d`](https://github.com/bitwarden/android/commit/9acfe7dd16030478d617fc8ef967bca07974a66b) Merge remote-tracking branch 'origin/main' into PM-13396/unofficial-server-errors - [`e78af53`](https://github.com/bitwarden/android/commit/e78af53b66587a9944433ef240150280d68f9faf) Formatting ### 📊 Changes **14 files changed** (+396 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `app/src/main/java/com/x8bit/bitwarden/data/auth/repository/AuthRepositoryImpl.kt` (+8 -1) 📝 `app/src/main/java/com/x8bit/bitwarden/data/auth/repository/di/AuthRepositoryModule.kt` (+3 -0) 📝 `app/src/main/java/com/x8bit/bitwarden/data/auth/repository/model/LoginResult.kt` (+5 -0) 📝 `app/src/main/java/com/x8bit/bitwarden/data/platform/datasource/disk/model/ServerConfig.kt` (+7 -1) 📝 `app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/enterprisesignon/EnterpriseSignOnViewModel.kt` (+12 -0) 📝 `app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/login/LoginViewModel.kt` (+12 -0) 📝 `app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/loginwithdevice/LoginWithDeviceViewModel.kt` (+13 -0) 📝 `app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/twofactorlogin/TwoFactorLoginViewModel.kt` (+13 -0) 📝 `app/src/main/res/values/strings.xml` (+2 -1) 📝 `app/src/test/java/com/x8bit/bitwarden/data/auth/repository/AuthRepositoryTest.kt` (+93 -32) 📝 `app/src/test/java/com/x8bit/bitwarden/ui/auth/feature/enterprisesignon/EnterpriseSignOnViewModelTest.kt` (+67 -1) 📝 `app/src/test/java/com/x8bit/bitwarden/ui/auth/feature/login/LoginViewModelTest.kt` (+38 -0) 📝 `app/src/test/java/com/x8bit/bitwarden/ui/auth/feature/loginwithdevice/LoginWithDeviceViewModelTest.kt` (+63 -0) 📝 `app/src/test/java/com/x8bit/bitwarden/ui/auth/feature/twofactorlogin/TwoFactorLoginViewModelTest.kt` (+60 -0) </details> ### 📄 Description ## 🎟️ Tracking https://bitwarden.atlassian.net/browse/PM-13396 ## 📔 Objective Displays a specific error message when login fails against an unrecognized Bitwarden server, helping users identify the issue. This message indicates that the server may not be a genuine Bitwarden instance, suggesting they check with their provider or update their server URL. ## 📸 Screenshots TODO ## ⏰ Reminders before review - Contributor guidelines followed - All formatters and local linters executed and passed - Written new unit and / or integration tests where applicable - Used internationalization (i18n) for all UI strings - CI builds passed - Communicated to DevOps any deployment requirements - Updated any necessary documentation or informed the documentation team ## 🦮 Reviewer guidelines <!-- Suggested interactions but feel free to use (or not) as you desire! --> - 👍 (`:+1:`) or similar for great changes - 📝 (`:memo:`) or ℹ️ (`:information_source:`) for notes or general info - ❓ (`:question:`) for questions - 🤔 (`:thinking:`) or 💭 (`:thought_balloon:`) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion - 🎨 (`:art:`) for suggestions / improvements - ❌ (`:x:`) or ⚠️ (`:warning:`) for more significant problems or concerns needing attention - 🌱 (`:seedling:`) or ♻️ (`:recycle:`) for future improvements or indications of technical debt - ⛏ (`:pick:`) for minor or nitpick changes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-12 01:14:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#61941