app icon indicating copy to clipboard operation
app copied to clipboard

Allow password manager app to auto-fill the login form

Open marc-farre opened this issue 2 years ago • 11 comments

On other apps or in the Browser, when clicking a field of the login form (username or password), the password manager adds a sort of modal box allowing to select the account to auto-fill the login form with:

image

Tested with Bitwarden only (maybe it works with others).

marc-farre avatar Jul 04 '23 11:07 marc-farre

Samsung Pass is working fine on my mobile.

image

luke- avatar Jul 04 '23 12:07 luke-

Update: If I go in the settings -> Accessibility -> Installed services -> Bitwarden and turn it to "on", the dropdown menu with Bitwarden appear on the login form (strangely this is not required for other apps and it's not the default setting). But after clicking on the login/password pair of Bitwarden to autofill, the fields stay blank and I have the message "No password field detected".

marc-farre avatar Oct 07 '23 07:10 marc-farre

Update: On the iOS it works as expected. Tested with Google password manager and Bitwarden. The problem persists on Android. Looking into it.

PrimozRatej avatar Nov 07 '23 21:11 PrimozRatej

@PrimozRatej FYI, when I login on a Humhub instance via an SSO, when I'm on the SSO page (so I'm not in Humhub), Bitwarden autofill works with Android. So the problem is only on Humhub form.

marc-farre avatar Nov 08 '23 14:11 marc-farre

Hey @marc-farre, I found there's still an open issue regarding this in the flutter_inappwebView repo that we use for WebView. However, the actual bug might be within an official Flutter/engine issue. Although it has been merged, it doesn't seem like it has been released yet according to the Flutter release CHANGELOG. I'll upgrade Flutter to the latest version so we can test it.

PrimozRatej avatar Aug 09 '24 07:08 PrimozRatej

I updated the version of Flutter to the latest stable release f-flutter-upgrade-3.24.0, but it looks like everything is the same on this topic. It seems that they fixed the Google password manager autofill, but Bitwarden still doesn't work. At this point, I assume the problem is with the Bitwarden implementation for Android.

PrimozRatej avatar Aug 23 '24 06:08 PrimozRatej

@PrimozRatej Thanks for trying. What's weird, is that it's the only app I have where Bitwarden doesn't work. It even works in small and not very well-known apps.

Maybe these links can help?

  • https://github.com/flutter/flutter/issues/61301
  • https://1password.community/discussion/127475/autofill-password-field-not-triggering-on-android-devices-for-flutter

marc-farre avatar Aug 23 '24 08:08 marc-farre

The problem isn't with Flutter itself. If this were a native view, you would define a base URL environment and use [AutofillHints.email, AutofillHints.username] & [AutofillHints.password]. However, since we're running it inside a web view, an additional layer is added. It appears that Bitwarden's autofill implementation does not recognize those input fields or the envirionment itself. I assume it's one of those 2 things.

PrimozRatej avatar Aug 23 '24 09:08 PrimozRatej

@PrimozRatej FYI, when I log in with an SSO (inside HumHub mobile app), Bitwarden works well. So it seems to be possible to make it work.

marc-farre avatar Sep 06 '24 08:09 marc-farre

when I log in with an SSO (inside HumHub mobile app), Bitwarden works well.

@marc-farre - With which provider did you log in with, or does it not matter?

PrimozRatej avatar Sep 06 '24 10:09 PrimozRatej

Anyone. You can test here: https://community.humhub.com/dashboard

image

image

marc-farre avatar Sep 06 '24 11:09 marc-farre

Fixed in v1.1.3

marc-farre avatar Jan 22 '25 11:01 marc-farre