FederatedCredential Class

A credential of a federated identity provider (https://w3c.github.io/webappsec-credential-management/#federatedcredential-interface): the user signs in to the site with an account of the provider, and the site authenticates the user with the protocol of the provider. The library stores no credential: see UserAgentUIBackend.ChooseCredentialAsync and UserAgentUIBackend.StoreCredentialAsync.

public sealed class FederatedCredential : Credential
Inheritance
Credential FederatedCredential

Constructors

NameDescription
FederatedCredential(FederatedCredentialInit)Creates a credential from its data (https://w3c.github.io/webappsec-credential-management/#construct-federatedcredential-data). Throws a TypeErrorException when the identifier or the provider is empty.

FederatedCredential(FederatedCredentialInit)

FederatedCredential.cs

Creates a credential from its data (https://w3c.github.io/webappsec-credential-management/#construct-federatedcredential-data). Throws a TypeErrorException when the identifier or the provider is empty.

public FederatedCredential(FederatedCredentialInit data)

Properties

NameDescription
IconUrlGets the URL of the image of the account (the empty string when there is none).
IdGets the identifier of the credential.
NameGets the name of the account (the empty string when there is none).
OriginGets the serialization of the origin of the credential ([[origin]]): the site that the credential signs in to.
ProtocolGets the protocol of the identity provider, or null.
ProviderGets the serialization of the origin of the identity provider.
TypeGets the type of the credential (the [[type]] of its interface, e.g. password or public-key).

Gets the URL of the image of the account (the empty string when there is none).

public string IconUrl { get; }

Gets the identifier of the credential.

public override string Id { get; }

Gets the name of the account (the empty string when there is none).

public string Name { get; }

Gets the serialization of the origin of the credential ([[origin]]): the site that the credential signs in to.

public string Origin { get; }

Property value

string

Gets the protocol of the identity provider, or null.

public string? Protocol { get; }

Gets the serialization of the origin of the identity provider.

public string Provider { get; }

Gets the type of the credential (the [[type]] of its interface, e.g. password or public-key).

public override string Type { get; }