google-smartlockpasswords

Google Smart Lock across multiple apps

独自空忆成欢 提交于 2021-01-24 07:49:40
问题 I've been trying to get Google's Smart Lock to work between two apps that I have (unfortunately with different keystores), but not having any luck. It's straightforward to save a password in Smart Lock for one app ( APP 1 ) doing something like: Credential credential = new Credential.Builder(email) .setPassword(password) .build(); Auth.CredentialsApi.save(mCredentialsApiClient, credential).setResultCallback(... However, when I try to make a CredentialRequest in APP 2 it's not able to read the

SmartLock doesn't show user profile photo

☆樱花仙子☆ 提交于 2020-01-25 02:51:10
问题 I am not able to retrieve the profile image associated with gmail account that is saved to smart lock. I am trying to integrate smart lock into my android application. I have multiple credentials (Gmail and password) saved to smart lock and these are returned when I make the CredentialsClient.request() call. Since there are multiple credentials, a system dialog is shown asking the user to choose the preferred credential. I have noticed that the retrieved credentials don't show the profile

Smart Lock for Passwords not working on certain phones, error message “No eligible accounts on this device”

人走茶凉 提交于 2019-12-31 03:06:11
问题 When I run the quick-start sample from: https://github.com/googlesamples/android-credentials/ On a Nexus 6 running Marshmallow, the credentials are saved successfully. However, on a Samsung Note 5 with Lollipop (5.1.1) I get: 11-25 14:45:27.581 11428-11428/com.google.example.credentialsbasic D/MainActivity: Save Failed:Status{statusCode=No eligible accounts on this device for the credentials API., resolution=null} According to Google Smart Lock for Password is on by default, and I cannot find

How to provide login credentials to an automated android test?

家住魔仙堡 提交于 2019-12-30 07:57:30
问题 I'm looking for a way to "provide a login" to my app so an automated test "is logged in" and can test the entire app. Currently it's of course blocked by the login-screen. Because I'm using SmartLock for Passwords, this might be a chance to provide some credentials for the test - but I don't know how. Is there some best-practice to provide credentials to / skip the login during a test? I could think of a special buildType / -flavor which is mocking the login but this way it can't be used to

Why Google Smart Lock Dialog just has two options “never” and “save” without an “no”?

爱⌒轻易说出口 提交于 2019-12-23 10:48:15
问题 The Smart Lock popup dialog just has two buttons, one is "never", and other is "save password". if a user accidentally click "never", the SmartLock will be disabled until he use a chrome app to delete the "never saved password" item, which is way too many steps for a "lazy user" , and it is very likely that this user may not use the SmartLock like forever In our opinion , if a user doesnt want to save his password to SmartLock just once, its very likely that he will click "never" since the

Smart Lock sign-in hint setPhoneNumberIdentifierSupported not working

隐身守侯 提交于 2019-12-23 01:41:39
问题 I am trying to get user phone number with a HintRequest PendingIntent intent = Auth.CredentialsApi.getHintPickerIntent( googleApiClient, new HintRequest.Builder() .setPhoneNumberIdentifierSupported(true) .setEmailAddressIdentifierSupported(false) .build()); try { startIntentSenderForResult(intent.getIntentSender(), REQUEST_CODE_RESOLVE_PHONE, null, 0, 0, 0); } catch (IntentSender.SendIntentException e) { e.printStackTrace(); } But getting no results and Activity.RESULT_CANCELED. The nubmer is

How to hint Google Smart Lock to use a specific input field as the username in a website

北城余情 提交于 2019-12-22 05:49:09
问题 I've been trying to search for some documentation on how to hint Google Smart Lock for Chrome to use a specific input field as the one associated with the username without any luck. For the password it works perfectly as it is using type="password" but when it comes down to the username in a multi field form, where the username is not specified before the password or not as the first field in the form it picks another of the fields in the form as the username. Does anyone have any clue on how

Google Smart Lock dialog for saving credentials does not appear when testing

。_饼干妹妹 提交于 2019-12-22 04:54:15
问题 I am trying to save a user's facebook credentials to Google Smart Lock, but I am having difficulty testing. I was able to display the prompt to save once, but after I went into my saved passwords (passwords.google.com) and deleted the saved credentials, the prompt is not appearing anymore! I went into google settings and made sure to delete the app from the "never save" section, but it is still not appearing. When I call Auth.CredentialsApi.save(), it is returning with a resolution of "null"

Can I change the sign in-hints modal title (from 'Choose an Account' to 'Pre-fill Sign up form')

冷暖自知 提交于 2019-12-13 19:08:29
问题 A possible flow within Smart Lock integration leads to a 'Choose an Account' modal for a new user. Selecting an account on this pop-up pre-fills the sign up page but the user does have to subsequently enter a new password to create an account. I find 'Choose an Account' header to be misleading since it leads a user to believe that they have an account on the app already. Is it possible to change the header of this modal to say something else - maybe something more intuitive like 'Prefill sign