Assigned
Status Update
Comments
bl...@google.com <bl...@google.com> #2
Automated by Blunderbuss job android-credential-manager-autoassigner for config android_credman_config for component 1301097.
re...@google.com <re...@google.com> #3
The error you posted state "activity is cancelled by the user". This implies the request was cancelled somehow during the request.
Can you grab a bugreport and attach it to this bug?
re...@google.com <re...@google.com>
ka...@gmail.com <ka...@gmail.com> #4
hi
I have created getCredRequest object where getPublicKeyCredentialOption passed jsonString as the request I recieved below .
and assigned to TextView Object.
I am expecting when user select's the userId bottomsheet should come for authentication and callback should be raised but that is not happening.
Q1 ) Can you please let me know is that json string has any problems ? I have printed similar json object .
GetPublicKeyCredentialOption getPublicKeyCredentialOption =
new GetPublicKeyCredentialOption(passkeyRequestString);
GetCredentialRequest getCredRequest = new GetCredentialRequest(
Arrays.asList(getPasswordOption, getPublicKeyCredentialOption)
);
CredentialManagerViewHandler.setPendingGetCredentialRequest(
mTextView, new PendingGetCredentialRequest(
getCredRequest, result -> {
Toast.makeText(KonyMain.getAppContext(),"Credential received", Toast.LENGTH_LONG).show();
return null;
}
));
{
"challenge": "OvEasO2eKJKICfLZ2vo_nFR56quWyA-JRF6lWLhExZM",
"rp": {
"name": "CredMan App Test",
"id": "voltmx-android-passkey.glitch.me "
},
"user": {
"id": "RNvvf0dD65Fbrih5rD8wD9Yp6qFUcIdyAs70b1IUJKA",
"name": "tuvverify",
"displayName": "tuvverify"
},
"pubKeyCredParams": [
{
"type": "public-key",
"alg": -7
},
{
"type": "public-key",
"alg": -257
}
],
"timeout": 1800000,
"attestation": "none",
"excludeCredentials": [],
"authenticatorSelection": {
"userVerification": "required",
"requireResidentKey": false
}
}
Q2) when I set isCredential=true by default only passwords saved by credentialmanagers are displaying but not the passkey userNames.What extra required.
Thanks
Karthik K
I have created getCredRequest object where getPublicKeyCredentialOption passed jsonString as the request I recieved below .
and assigned to TextView Object.
I am expecting when user select's the userId bottomsheet should come for authentication and callback should be raised but that is not happening.
Q1 ) Can you please let me know is that json string has any problems ? I have printed similar json object .
GetPublicKeyCredentialOption getPublicKeyCredentialOption =
new GetPublicKeyCredentialOption(passkeyRequestString);
GetCredentialRequest getCredRequest = new GetCredentialRequest(
Arrays.asList(getPasswordOption, getPublicKeyCredentialOption)
);
CredentialManagerViewHandler.setPendingGetCredentialRequest(
mTextView, new PendingGetCredentialRequest(
getCredRequest, result -> {
Toast.makeText(KonyMain.getAppContext(),"Credential received", Toast.LENGTH_LONG).show();
return null;
}
));
{
"challenge": "OvEasO2eKJKICfLZ2vo_nFR56quWyA-JRF6lWLhExZM",
"rp": {
"name": "CredMan App Test",
"id": "
},
"user": {
"id": "RNvvf0dD65Fbrih5rD8wD9Yp6qFUcIdyAs70b1IUJKA",
"name": "tuvverify",
"displayName": "tuvverify"
},
"pubKeyCredParams": [
{
"type": "public-key",
"alg": -7
},
{
"type": "public-key",
"alg": -257
}
],
"timeout": 1800000,
"attestation": "none",
"excludeCredentials": [],
"authenticatorSelection": {
"userVerification": "required",
"requireResidentKey": false
}
}
Q2) when I set isCredential=true by default only passwords saved by credentialmanagers are displaying but not the passkey userNames.What extra required.
Thanks
Karthik K
ka...@hcl-software.com <ka...@hcl-software.com> #5
Hi please help me resolving this issue.
Your time is greatly appreciated.
thanks
Karthik K
Your time is greatly appreciated.
thanks
Karthik K
re...@google.com <re...@google.com> #6
Hi Karthik,
If your intention is to surface a bottom sheet when user taps on the username field, then what you need to do is listen to the username field focus on your own, and when clicked, call
The setPendingGetCredentialRequest API is for displaying the passkeys in the keyboard suggestions which if I understand correctly is not what you want to achieve here.
ka...@hcl-software.com <ka...@hcl-software.com> #7
HI I am looking for
The setPendingGetCredentialRequest API is for displaying the passkeys in the keyboard suggestions which if I understand correctly is not what you want to achieve here.
this behaviour and in my code sample also if you see I have used setPendingGetCredentialRequest API and added the request during first signin.
how can we further proceed with autofill and user get autofill suggestion on keyboard .
Thanks
Karthik K.
The setPendingGetCredentialRequest API is for displaying the passkeys in the keyboard suggestions which if I understand correctly is not what you want to achieve here.
this behaviour and in my code sample also if you see I have used setPendingGetCredentialRequest API and added the request during first signin.
how can we further proceed with autofill and user get autofill suggestion on keyboard .
Thanks
Karthik K.
ka...@gmail.com <ka...@gmail.com> #8
Hi ,
I have observed that suggestions are appearing on keyboard with
setPendingGetCredentialRequest , but I want suggestion to appear as
dropdown to EditText but not the keyboard.
How can we achieve this behaviour ?
Suggested generic behaviour is to bring the bottomsheet but not the
dropdown of EditText View.
Thanks & Regards
Karthik K
On Thu, Jan 23, 2025 at 1:17 PM <buganizer-system@google.com> wrote:
I have observed that suggestions are appearing on keyboard with
setPendingGetCredentialRequest , but I want suggestion to appear as
dropdown to EditText but not the keyboard.
How can we achieve this behaviour ?
Suggested generic behaviour is to bring the bottomsheet but not the
dropdown of EditText View.
Thanks & Regards
Karthik K
On Thu, Jan 23, 2025 at 1:17 PM <buganizer-system@google.com> wrote:
Description
where I followed
and made changes to textview as below :
credentialManager = CredentialManager.create(requireActivity())
binding.signInWithSavedCredentials.setOnClickListener(signInWithSavedCredentials())
val getPasswordOption = GetPasswordOption()
// Get a passkey from the user's public key credential provider.
val getPublicKeyCredentialOption = GetPublicKeyCredentialOption(
requestJson = passkeyRequestString
)
val getCredRequest = GetCredentialRequest(
listOf(getPasswordOption, getPublicKeyCredentialOption)
)
var pr : PendingGetCredentialRequest = PendingGetCredentialRequest(getCredRequest) { request ->
Toast.makeText(
requireContext(),
" received credential request",
android.widget.Toast.LENGTH_LONG
).show()
}
but I am not gettting any paskey popup for authentication .
you can see that actually same passkey is available , where I have attached screen shot.
Note this is hardcoded string : passkeyRequestString
Thanks
Karthik K