Contact emails
Specification
https://w3c.github.io/webappsec-credential-management/
Summary
This intent introduces a mediation enum argument to CredentialsContainer::get() and deprecates the current unmediated flag. The enum has three options, “silent”, “optional” and "required”. “silent” is equivalent to unmediated == true, while “optional” is equivalent to unmediated == false and will be the default option. “required” is new and will always require user mediation when specified.
For more details and examples see the corresponding section in the spec: https://w3c.github.io/webappsec-credential-management/#enumdef-credentialmediationrequirement
Until the boolean flag is removed completely in M62, mediation will take the following values depending on what is provided as arguments:
If neither unmediated nor mediation is specified, mediation will be set to “optional”, the default value.
If only unmediated is specified, mediation will be set appropriately, i.e. “silent” in case of unmediated == true and “optional” otherwise.
If only mediation is specified just use that value.
If both are specified, ignore the value of unmediated and use what was specified for mediation.
Motivation
The WebAuthn API was rewritten in https://github.com/w3c/webauthn/pull/384 to extend the Credential Manager API.
There were several minor changes required for the CM API to make this integration possible, this is one of them.
Usage information
Usage of the Credential Manager API is low in general: https://www.chromestatus.com/metrics/feature/popularity#CredentialManagerGet
Interoperability and Compatibility Risk
Low risk, since overall usage is low and no other browser has shipped the Credential Manager API yet.
Alternative implementation suggestion for web developers
Instead of using the unmediated flag web developers should use the mediation enum instead.
OWP launch tracking bug
Entry on the feature dashboard
https://www.chromestatus.com/feature/6076479909658624
Requesting approval to remove unmediated flag?
No, removal is planned for M62.
Requesting approval to ship mediation enum?
Yes.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/204c98b7-f851-4c24-a8da-3ae11b5d9944%40chromium.org.--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY_Z%3DvbBkTcycncFWtDLbxP8yorWVV1DmhBMgb7QExC%3Djw%40mail.gmail.com.