-
Notifications
You must be signed in to change notification settings - Fork 183
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
Initial text for conditional create #1951
Changes from 1 commit
cacd06d
eb9dd9f
65066fa
c14f20a
6c6184b
bf5480d
2b8521b
55024a6
6906fe6
d750218
e9b0448
aca236f
763831b
5d6c205
ae8e0fc
0318dee
f2ccac7
9a30613
dde3ab3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -1744,6 +1744,8 @@ By setting <code>|options|.{{CredentialCreationOptions/mediation}}</code> to {{C | |||||||||||||||||||||||||
[=[RPS]=] can indicate that they would like to register a credential without prominent modal UI if user has already consented to create a credential. The [=[RP]=] SHOULD first check that {{ClientCapability/conditionalCreate}} is present | ||||||||||||||||||||||||||
in the result of {{PublicKeyCredential/getClientCapabilities()}} in order to avoid the possibility of causing a user-visible error to be returned if the user agent does | ||||||||||||||||||||||||||
not support {{CredentialMediationRequirement/conditional}} [=user mediation=] for {{CredentialsContainer/create()|navigator.credentials.create()}}. | ||||||||||||||||||||||||||
The authenticator SHOULD set BOTH |userPresence| and |userVerification| to |FALSE| when <code>|options|.{{CredentialCreationOptions/mediation}}</code> is set to {{CredentialMediationRequirement/conditional}} | ||||||||||||||||||||||||||
unless explicitly collected during the ceremony. | ||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This section is the client operation, but this is a requirement on the authenticator. This needs to go in section 6 (WebAuthn Authenticator Model) instead, or be rewritten in terms of how the client is to set the arguments to the authenticator operation. |
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
Any {{CredentialsContainer/create()|navigator.credentials.create()}} operation can be aborted by leveraging the {{AbortController}}; | ||||||||||||||||||||||||||
see [[dom#abortcontroller-api-integration]] for detailed instructions. | ||||||||||||||||||||||||||
|
@@ -2023,7 +2025,14 @@ a numbered step. If outdented, it (today) is rendered as a bullet in the midst o | |||||||||||||||||||||||||
<dl class="switch"> | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
: is set to {{UserVerificationRequirement/required}} | ||||||||||||||||||||||||||
:: Let |userVerification| be [TRUE]. | ||||||||||||||||||||||||||
:: If <code>|options|.{{CredentialCreationOptions/mediation}}</code> is set to | ||||||||||||||||||||||||||
<dl class="switch"> | ||||||||||||||||||||||||||
: {{CredentialMediationRequirement/conditional}} | ||||||||||||||||||||||||||
:: throw a {{NotAllowedError}} {{DOMException}} unless it can be explicitly collected during the ceremony. | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
: empty or another value | ||||||||||||||||||||||||||
:: Let |userVerification| be [TRUE]. | ||||||||||||||||||||||||||
</dl> | ||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The flow here is a bit convoluted, I would formulate it something more like this:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The idea with conditional registration is that you invoke it right after logging in and get a result quickly. If the user didn't consent to this type of create, then they will quickly get an error, otherwise a credential. I think |
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
: is set to {{UserVerificationRequirement/preferred}} | ||||||||||||||||||||||||||
:: If the |authenticator| | ||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/SHOULD/MUST