Skip to content
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

[BWA-38] Make imported 2FAS fields optional #113

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Conversation

KatherineInCode
Copy link
Contributor

@KatherineInCode KatherineInCode commented Jun 12, 2024

🎟️ Tracking

BWA-38

📔 Objective

This adjusts the 2FAS import to make all of the "otp" fields optional, as some exports may be missing some of these fields (as opposed to having them and leaving them empty). This should improve the 2FAS import experience.

⏰ 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

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Detailsb68facb4-b9a7-402d-8312-bc799529d629

No New Or Fixed Issues Found

Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.97%. Comparing base (cb00eb2) to head (989992b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #113   +/-   ##
=======================================
  Coverage   61.97%   61.97%           
=======================================
  Files         199      199           
  Lines        6754     6754           
=======================================
  Hits         4186     4186           
  Misses       2568     2568           

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

@KatherineInCode KatherineInCode marked this pull request as ready for review June 12, 2024 14:53
@KatherineInCode KatherineInCode requested a review from a team as a code owner June 12, 2024 14:53
@@ -19,8 +19,9 @@ class GoogleImporter {
return payload.otpParameters.compactMap { item in
guard item.type == .otpTotp else { return nil }
let secret = item.secret.base32String()
// Google Authenticator current ignores algorithm and period on all platforms and digits on some platforms (but not iOS).
// Therefore, we need to use defaults and keep the digits in a reasonable range, because Google Authenticator doesn't
// Google Authenticator current ignores algorithm and period on all platforms
Copy link
Contributor

Choose a reason for hiding this comment

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

⛏️ line length

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change fixes the line length warning; not sure why it's showing up as still existing

@KatherineInCode KatherineInCode merged commit 1b5a279 into main Jun 12, 2024
9 checks passed
@KatherineInCode KatherineInCode deleted the bwa-38/fix-twofas branch June 12, 2024 15:37
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.

2 participants