Skip to content

Show SSO login if using key-connector without bio or pin#1648

Merged
jlf0dev merged 2 commits intomasterfrom
bug/cme-autofill-unlock
Nov 17, 2021
Merged

Show SSO login if using key-connector without bio or pin#1648
jlf0dev merged 2 commits intomasterfrom
bug/cme-autofill-unlock

Conversation

@jlf0dev
Copy link
Member

@jlf0dev jlf0dev commented Nov 17, 2021

Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

Use SSO if using key connector without bio or pin on autofill
Asana Task: https://app.asana.com/0/1201363553288890/1201363818962345/f
https://app.asana.com/0/1201363553288890/1201363818962343/f

Code changes

  • src/iOS.Core/Controllers/LockPasswordViewController.cs: Add call to SSO login page if using key connector

Testing requirements

  • Autofill authentication with key connector
  • Extension authentication with key connector

Before you submit

  • I have added unit tests where it makes sense to do so (encouraged but not required)
  • This change requires a documentation update (notify the documentation team)
  • This change has particular deployment requirements (notify the DevOps team)

@jlf0dev jlf0dev requested a review from mpbw2 November 17, 2021 14:11
{
await _storageService.SaveAsync(Bit.Core.Constants.PasswordVerifiedAutofillKey, true);
}
await EnableBiometrics();
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you elaborate on this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good callout, I created a method to check if biometrics have been validated yet so we can use SSO to enable them instead of MP if they are using key connector.

Regarding 2ecbc4b, I accidentally included an extra call in CheckPasswordAsync() that I removed in this commit (and did some housekeeping).

I admit this method will now also be called whenever biometrics are successful (unnecessarily), but I thought it was a little cleaner.

- ordered methods to group private and public
@jlf0dev jlf0dev merged commit 3e0e620 into master Nov 17, 2021
@jlf0dev jlf0dev deleted the bug/cme-autofill-unlock branch November 17, 2021 17:44
fedemkr added a commit that referenced this pull request Nov 24, 2021
* master: (26 commits)
  Add support for Pluma Browser for Android (#1639)
  Update Focus/Klar accessibility and autofill IDs (#1535)
  Add workaround to Android entry renderer (#1658)
  [Key Connector] Hide MP input in iOS extensions (#1656)
  ui changes for lock screen if using key connector with biometrics (#1654)
  Revert "Add Share app Extension on iOS for Send (#1647)" (#1655)
  Add Share app Extension on iOS for Send (#1647)
  Bug/cme autofill unlock (#1653)
  ui changes export vault screen for key connector (#1651)
  Autosync the updated translations (#1652)
  Fixed missing FavIcons on Android #1640 (#1649)
  Hide Master Pass On Restart for Key Connector (#1650)
  Show SSO login if using key-connector without bio or pin (#1648)
  Autosync the updated translations (#1642)
  pass OrgId to SSO login while using CME (#1646)
  [KeyConnector] Add support for key connector OTP (#1633)
  [Linked fields] Add Linked Field as a custom field type (#1563)
  Change Release workflow to allow releases from 'rc' and 'hotfix' branches (#1632)
  fixing a typo (#1634)
  Updating the crowdin sync process (#1630)
  ...

# Conflicts:
#	src/App/Abstractions/IPasswordRepromptService.cs
#	src/App/Resources/AppResources.Designer.cs
#	src/App/Resources/AppResources.resx
#	src/App/Services/MobilePasswordRepromptService.cs
#	src/Core/Services/ApiService.cs
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