CredentialChooserPrompt Class
A request for a stored credential, given to UserAgentUIBackend.ChooseCredentialAsync.
public sealed class CredentialChooserPrompt : UserAgentPrompt- Inheritance
UserAgentPromptCredentialChooserPrompt
Properties
| Name | Description |
|---|---|
| Federated | Gets the federated credentials that are requested (the stored FederatedCredential of the origin whose provider and protocol match), or null. |
| Mediation | Gets the mediation requirement of the request. |
| Password | Gets whether the stored PasswordCredential of the origin are requested. |
| RequiresUserMediation | Gets whether the origin requires user mediation (https://w3c.github.io/webappsec-credential-management/#origin-requires-user-mediation): navigator.credentials.preventSilentAccess() was called, so the backend must not return a credential without asking the user. |
Federated
UserAgentUIBackend.Credentials.csGets the federated credentials that are requested (the stored FederatedCredential of the origin whose provider and protocol match), or null.
public FederatedCredentialRequestOptions? Federated { get; }Property value
Mediation
UserAgentUIBackend.Credentials.csGets the mediation requirement of the request.
public CredentialMediationRequirement Mediation { get; }Property value
Gets whether the stored PasswordCredential of the origin are requested.
public bool Password { get; }Property value
RequiresUserMediation
UserAgentUIBackend.Credentials.csGets whether the origin requires user mediation (https://w3c.github.io/webappsec-credential-management/#origin-requires-user-mediation): navigator.credentials.preventSilentAccess() was called, so the backend must not return a credential without asking the user.
public bool RequiresUserMediation { get; }Property value
Methods
| Name | Description |
|---|---|
| Matches(Credential) | Returns whether a credential matches the request (its type, origin, provider and protocol). |
Matches(Credential)
UserAgentUIBackend.Credentials.csReturns whether a credential matches the request (its type, origin, provider and protocol).
public bool Matches(Credential credential)