Skip to content

Conversation

@david-livefront
Copy link
Collaborator

@david-livefront david-livefront commented Oct 9, 2025

🎟️ Tracking

PM-26575

📔 Objective

This PR adds support for AuthTabs when logging in with Duo, WebAuthn, and SSO login flows.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) 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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2025

Logo
Checkmarx One – Scan Summary & Detailsb278b8b1-f456-49f1-b0e8-4075a18ceaa7

Great job! No new security vulnerabilities introduced in this pull request

AuthTabIntent.Builder().build().launch(launcher, uri, "bitwarden")
} else {
// Fall back to a Custom Tab.
startCustomTabsActivity(uri = uri)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Were you able to test browsers compatibility?
  2. When AuthTab is used, is there any visual indication of it?
  3. 💭 Perhaps we could log to FlightRecorder if AuthTab was used.

Copy link
Collaborator Author

@david-livefront david-livefront Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. In Chrome, Brave, and Edge AuthTab works well. In Firefox and Opera, it falls back to CustomTabs.
  2. They basically looks the same. The AuthTab does not allow users to open in Chrome though.
  3. Logs can be added but we'd need to add Timber to the ui module
Custom Tab Auth Tab

@david-livefront david-livefront force-pushed the PM-26575-auth-tabs branch 3 times, most recently from cad5cb3 to 85e4005 Compare October 9, 2025 21:28
@codecov
Copy link

codecov bot commented Oct 9, 2025

Codecov Report

❌ Patch coverage is 82.35294% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.60%. Comparing base (2b88743) to head (4ac247b).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...it/bitwarden/data/auth/repository/util/DuoUtils.kt 71.42% 0 Missing and 2 partials ⚠️
...it/bitwarden/data/auth/repository/util/SsoUtils.kt 66.66% 0 Missing and 2 partials ⚠️
...itwarden/data/auth/repository/util/WebAuthUtils.kt 66.66% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6002   +/-   ##
=======================================
  Coverage   84.59%   84.60%           
=======================================
  Files         722      722           
  Lines       54882    54894   +12     
  Branches     7569     7578    +9     
=======================================
+ Hits        46426    46441   +15     
+ Misses       5805     5796    -9     
- Partials     2651     2657    +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@david-livefront david-livefront changed the title PM-26575: Add AuthTab support for WebAuthN and Duo PM-26575: Add AuthTab support for WebAuthN, Duo, and SSO Oct 10, 2025
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we either write a few tests for this, or omit it from coverage?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added tests for the DuoUtils... I didn't realize it had none.

Tests for the AuthTabIntent.AuthResult have been omitted since mockking it is problematic.

@david-livefront
Copy link
Collaborator Author

Thanks @SaintPatrck

@david-livefront david-livefront added this pull request to the merge queue Oct 10, 2025
Merged via the queue into main with commit c6f132d Oct 10, 2025
9 checks passed
@david-livefront david-livefront deleted the PM-26575-auth-tabs branch October 10, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants