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

Credential request options mediation requirement #147

Closed
marcoscaceres opened this issue Jul 23, 2024 · 5 comments · Fixed by #149
Closed

Credential request options mediation requirement #147

marcoscaceres opened this issue Jul 23, 2024 · 5 comments · Fixed by #149

Comments

@marcoscaceres
Copy link
Collaborator

The CredentialRequestOptions dictionary provides CredentialMediationRequirement mediation that defaults to "optional".

The other possible values are:

I think that any call to .get() will be user mediated (i.e., will show UI). Thus, we should throw a type error for anything but "required" user mitigation.

@marcoscaceres
Copy link
Collaborator Author

@Sakurann
Copy link
Contributor

Sakurann commented Aug 1, 2024

(if I understood correctly) what if there is no wallet installed on a user device that can meet verifier's requests? would that still result in user interaction "you don't have a wallet that can fulfill this request?". It actually might be nice if this can lead to a screen where verifier can prompt the user to install wallet(s)?

@timcappalli
Copy link
Member

timcappalli commented Aug 1, 2024

(if I understood correctly) what if there is no wallet installed on a user device that can meet verifier's requests? would that still result in user interaction "you don't have a wallet that can fulfill this request?". It actually might be nice if this can lead to a screen where verifier can prompt the user to install wallet(s)?

That would be the app platform's responsibility / choice. Credential Mediation provides the framework to be able to provide non-modal experiences for credential requests in the browser, such as the autofill UI for passkeys.

@samuelgoto
Copy link
Collaborator

would that still result in user interaction "you don't have a wallet that can fulfill this request?".

Yeah, I think that's what Android is converging to: show a "no credential available" UI.

It actually might be nice if this can lead to a screen where verifier can prompt the user to install wallet(s)?

That seems reasonable and worth exploring further.

@marcoscaceres
Copy link
Collaborator Author

marcoscaceres commented Aug 28, 2024

Yeah, thought that that's outside the scope of the standard... that's gets into platform specific experience stuff. But it's a great suggestion @Sakurann.

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 a pull request may close this issue.

4 participants