IdentityAccountChooserPrompt Class

The account chooser of a FedCM request, given to UserAgentUIBackend.ChooseIdentityAccountAsync.

public sealed class IdentityAccountChooserPrompt : IdentityCredentialPrompt
Inheritance
IdentityCredentialPrompt IdentityAccountChooserPrompt

Properties

NameDescription
AccountsGets the accounts the user can choose from, in the order of the providers of the request (IdentityProviderAccount.ConfigUrl is the provider of an account).
ShowsSiteOriginGets whether the dialog must show the site of UserAgentPrompt.Origin (the requesting frame), in addition to the site of UserAgentPrompt.TopLevelOrigin: the client metadata of the provider tells that the site is a third party to the top-level site.
SupportsUseOtherAccountGets whether the chooser offers to sign in to another account of the provider (IdentityAccountChoice.UseOtherAccount): a request to a single provider whose config supports it (the specification only offers it to the active requests, the browsers to every request).

Gets the accounts the user can choose from, in the order of the providers of the request (IdentityProviderAccount.ConfigUrl is the provider of an account).

public IReadOnlyList<IdentityProviderAccount> Accounts { get; }

Gets whether the dialog must show the site of UserAgentPrompt.Origin (the requesting frame), in addition to the site of UserAgentPrompt.TopLevelOrigin: the client metadata of the provider tells that the site is a third party to the top-level site.

public bool ShowsSiteOrigin { get; }

Property value

bool

SupportsUseOtherAccount

UserAgentUIBackend.FedCm.cs

Gets whether the chooser offers to sign in to another account of the provider (IdentityAccountChoice.UseOtherAccount): a request to a single provider whose config supports it (the specification only offers it to the active requests, the browsers to every request).

public bool SupportsUseOtherAccount { get; }

Property value

bool