8000 [PM-10450] Fix FIdo2 never lock user verification not appearing by fedemkr · Pull Request #787 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[PM-10450] Fix FIdo2 never lock user verification not appearing #787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

fedemkr
Copy link
Member
@fedemkr fedemkr commented Aug 2, 2024

🎟️ Tracking

PM-10450

📔 Objective

Fix Fido2 flow user verification not appearing when in an account with never lock timeout.
The problem arises because of trying to perform user interaction, e.g. prompting for FaceID, before viewDidAppear happens. So as a solution we just for it to happen before continuing with user interaction 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

…ws, so it waits until the view has appeared in order to continue prompting the user.
8000
@fedemkr fedemkr requested review from matt-livefront and a team August 2, 2024 15:46
Copy link
codecov bot commented Aug 2, 2024

Codecov Report

Attention: Patch coverage is 55.55556% with 8 lines in your changes missing coverage. Please review.

Project coverage is 88.16%. Comparing base (42acf6f) to head (e41af8b).

Files Patch % Lines
...llExtension/CredentialProviderViewController.swift 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #787      +/-   ##
==========================================
- Coverage   88.19%   88.16%   -0.03%     
==========================================
  Files         577      577              
  Lines       29213    29229      +16     
==========================================
+ Hits        25763    25771       +8     
- Misses       3450     3458       +8     

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

Copy link
Contributor
github-actions bot commented Aug 2, 2024

Logo
Checkmarx One – Scan Summary & Details06995fa0-77cb-4b28-895f-b60c29e004b5

No New Or Fixed Issues Found

Comment on lines +436 to +439
// WORKAROUND: We need to wait until the view controller appears in order to perform any
// action that needs user interaction or it might not show the prompt to the user.
// E.g. without this there are certain devices that don't show the FaceID prompt
// and the user only sees the screen dimming a bit and failing the flow.
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

@fedemkr fedemkr merged commit 72a2018 into main Aug 2, 2024
8 checks passed
@fedemkr fedemkr deleted the mobiletf/pm-10450/fix-never-lock-fido2-verification branch August 2, 2024 17:18

// WORKAROUND: We need to wait until the view controller appears in order to perform any
// action that needs user interaction or it might not show the prompt to the user.
// E.g. without this there are certain devices that don't show the FaceID prompt
Copy link
Contributor

Choose a reason for hiding this comment

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

⛏️ "E.g." means "for example" ("exempli gratia"); if you want "that is" or "in other words", that'd be "i.e." ("id est")

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted exampli gratia, as there are other cases in which this happens as setting up the PIN.

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool, wasn't sure!

@@ -2,6 +2,7 @@ import AuthenticationServices
import BitwardenSdk
import Combine
import Foundation
import OSLog
Copy link
Contributor

Choose a reason for hiding this comment

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

⛏️ If we don't have logs in the file we shouldn't have this

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.

3 participants
0