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

Add mediation to credential creation options #224

Merged
merged 3 commits into from
May 30, 2024
Merged

Conversation

pascoej
Copy link
Contributor

@pascoej pascoej commented Dec 20, 2023

This fixes

Most of the heavy lifting of conditional in create is handled in WebAuthn.

Fixes #225

See also:
https://github.com/w3c/webauthn/pull/1951/files
https://github.com/w3c/webauthn/wiki/Explainer:-Conditional-Registration-Extension


Preview | Diff

@pascoej pascoej changed the title This adds mediation to the creation options dictionary. Add mediation to credential creation options Dec 20, 2023
Copy link
Member

@nsatragno nsatragno left a comment

Choose a reason for hiding this comment

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

Thank you for your CL! The API surface looks good on the credman side. We just have to make sure the interpretation of mediation remains clear for other credential types. Here is my first pass.

index.bs Show resolved Hide resolved
index.bs Show resolved Hide resolved
index.bs Show resolved Hide resolved
index.bs Show resolved Hide resolved
index.bs Show resolved Hide resolved
index.bs Show resolved Hide resolved
index.bs Show resolved Hide resolved
index.bs Show resolved Hide resolved
index.bs Show resolved Hide resolved
Copy link
Member

@nsatragno nsatragno left a comment

Choose a reason for hiding this comment

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

Approved with comments. Thank you for your great work!

index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
@nsatragno nsatragno added the type:technical Technical issues or features label Feb 28, 2024
@pascoej
Copy link
Contributor Author

pascoej commented Mar 19, 2024

Thank you for the review!

@pascoej pascoej force-pushed the cond-reg branch 4 times, most recently from 06d81f0 to b6c2261 Compare March 19, 2024 23:28
index.bs Outdated
{{Credential}}'s default implementation of {{Credential/willRequestConditionalCreation()}}:

<ol class="algorithm">
1. Return a new {{Promise}} that immediately [=resolves=].
Copy link
Member

@marcoscaceres marcoscaceres May 22, 2024

Choose a reason for hiding this comment

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

I think here you just want:

Suggested change
1. Return a new {{Promise}} that immediately [=resolves=].
1. Return [=a promise resolved with=] undefined.

The "immediately" could be confusing (it will happen "immediately", but let the underlying algorithm in WebIDL and JS handle that).

index.bs Outdated
1. Return a new {{Promise}} that immediately [=resolves=].
</ol>

Note: If this function is not present, {{CredentialMediationRequirement/conditional}}
Copy link
Member

Choose a reason for hiding this comment

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

This should probably be "method" or "operation"

Suggested change
Note: If this function is not present, {{CredentialMediationRequirement/conditional}}
Note: If this method is not present, {{CredentialMediationRequirement/conditional}}

Copy link
Member

@marcoscaceres marcoscaceres left a comment

Choose a reason for hiding this comment

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

Noticed a couple small issues here... might be good to fix up before merging.

@pascoej pascoej merged commit 4fa577c into w3c:main May 30, 2024
2 checks passed
@pascoej pascoej deleted the cond-reg branch May 30, 2024 17:16
github-actions bot added a commit that referenced this pull request May 30, 2024
SHA: 4fa577c
Reason: push, by pascoej

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:technical Technical issues or features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mediation parameter for credential creation
4 participants