IdentityProviderAccount Class

An account of an identity provider (https://w3c-fedid.github.io/FedCM/#dictdef-identityprovideraccount), returned by its accounts endpoint and shown by the account chooser of a FedCM request (IdentityAccountChooserPrompt).

public sealed class IdentityProviderAccount

Properties

NameDescription
ApprovedClientsGets the client identifiers of the sites that the account is registered with, or null.
ConfigUrlGets the URL of the config file of the identity provider of the account (set by the request that shows the account).
DomainHintsGets the domain hints that match the account, or null.
EmailGets the email address of the account, or null.
GivenNameGets the given name of the user, or null.
IdGets the identifier of the account at the identity provider.
IsConnectedGets whether the account is connected to the site (https://w3c-fedid.github.io/FedCM/#compute-the-connection-status): the user signs in with it, else the user signs up (set by the request that shows the account).
LabelHintsGets the labels of the account, or null.
LoginHintsGets the login hints that match the account, or null.
NameGets the full name of the user, or null.
PictureGets the URL of the picture of the account, as the identity provider returned it, or null.
PictureContentGets the content of the picture of the account, fetched before the account is shown (https://w3c-fedid.github.io/FedCM/#fetch-the-account-picture), or null when it could not be fetched.
PrivacyPolicyUrlGets the URL of the privacy policy of the site, shown to the user who signs up, or null.
TelGets the phone number of the account, or null.
TermsOfServiceUrlGets the URL of the terms of service of the site, shown to the user who signs up, or null.
UsernameGets the user name of the account, or null.

Gets the client identifiers of the sites that the account is registered with, or null.

public IReadOnlyList<string>? ApprovedClients { get; init; }

Gets the URL of the config file of the identity provider of the account (set by the request that shows the account).

public string ConfigUrl { get; }

Property value

string

Gets the domain hints that match the account, or null.

public IReadOnlyList<string>? DomainHints { get; init; }

Gets the email address of the account, or null.

public string? Email { get; init; }

Property value

string?

Gets the given name of the user, or null.

public string? GivenName { get; init; }

Property value

string?

Gets the identifier of the account at the identity provider.

public string Id { get; }

Property value

string

Gets whether the account is connected to the site (https://w3c-fedid.github.io/FedCM/#compute-the-connection-status): the user signs in with it, else the user signs up (set by the request that shows the account).

public bool IsConnected { get; }

Property value

bool

Gets the labels of the account, or null.

public IReadOnlyList<string>? LabelHints { get; init; }

Gets the login hints that match the account, or null.

public IReadOnlyList<string>? LoginHints { get; init; }

Gets the full name of the user, or null.

public string? Name { get; init; }

Property value

string?

Gets the URL of the picture of the account, as the identity provider returned it, or null.

public string? Picture { get; init; }

Property value

string?

Gets the content of the picture of the account, fetched before the account is shown (https://w3c-fedid.github.io/FedCM/#fetch-the-account-picture), or null when it could not be fetched.

public ReadOnlyMemory<byte>? PictureContent { get; }

Property value

ReadOnlyMemory<byte>?

Gets the URL of the privacy policy of the site, shown to the user who signs up, or null.

public string? PrivacyPolicyUrl { get; }

Property value

string?

Gets the phone number of the account, or null.

public string? Tel { get; init; }

Property value

string?

Gets the URL of the terms of service of the site, shown to the user who signs up, or null.

public string? TermsOfServiceUrl { get; }

Property value

string?

Gets the user name of the account, or null.

public string? Username { get; init; }

Property value

string?