CredentialChooserPrompt Class

A request for a stored credential, given to UserAgentUIBackend.ChooseCredentialAsync.

public sealed class CredentialChooserPrompt : UserAgentPrompt
Inheritance
UserAgentPrompt CredentialChooserPrompt

Properties

NameDescription
FederatedGets the federated credentials that are requested (the stored FederatedCredential of the origin whose provider and protocol match), or null.
MediationGets the mediation requirement of the request.
PasswordGets whether the stored PasswordCredential of the origin are requested.
RequiresUserMediationGets 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.

Gets the federated credentials that are requested (the stored FederatedCredential of the origin whose provider and protocol match), or null.

public FederatedCredentialRequestOptions? Federated { get; }

Gets the mediation requirement of the request.

public CredentialMediationRequirement Mediation { get; }

Gets whether the stored PasswordCredential of the origin are requested.

public bool Password { get; }

Property value

bool

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.

public bool RequiresUserMediation { get; }

Property value

bool

Methods

NameDescription
Matches(Credential)Returns whether a credential matches the request (its type, origin, provider and protocol).

Returns whether a credential matches the request (its type, origin, provider and protocol).

public bool Matches(Credential credential)

Parameters

credential Credential
The credential.

Returns

bool