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

Relax user activation requirement for authentication #236

Merged
merged 8 commits into from
Apr 24, 2023
17 changes: 12 additions & 5 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,8 @@ on behalf of the [=Relying Party=], passing in credentials that it has obtained
from the Relying Party on some other unspecified channel. See
[[#sctn-use-case-merchant-authentication]].

<wpt title="This test file tests inherited behavior from the PaymentRequest
specification; that a user activation is required to call show()
(and thus to trigger SPC authentication). We test it explicitly for
SPC to make it clear that this behavior is desirable even if the
API shape for SPC changes in the future.">
<!-- This WPT is to be removed after issue #216 is closed. -->
<wpt hidden>
authentication-requires-user-activation.https.html
</wpt>

Expand Down Expand Up @@ -775,6 +772,16 @@ The user agent MAY utilize the information in
into a language and using locale-based formatting consistent with that of the
website.

The user agent MAY decide to skip steps 2 and 3 of the
nickburris marked this conversation as resolved.
Show resolved Hide resolved
{{PaymentRequest/show|PaymentRequest.show()}} method, i.e. not require a user
activation, when the [=Secure Payment Confirmation payment handler=] is
selected.

NOTE: The user agent may still decide to enforce the user activation
requirement, or implement a relaxed requirement such as allowing one
activationless call per page load. The user agent may also consider other spam
mitigations such as an anti-clickjacking mechanic.
nickburris marked this conversation as resolved.
Show resolved Hide resolved

If {{SecurePaymentConfirmationRequest/showOptOut}} is `true`, the user agent
MUST give the user the opportunity to indicate that they want to opt out of the
process for the {{SecurePaymentConfirmationRequest/rpId|given relying party}}.
Expand Down