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
CredentialFederatedCredential
Constructors
| Name | Description |
|---|---|
| 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.csCreates 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
| Name | Description |
|---|---|
| IconUrl | Gets the URL of the image of the account (the empty string when there is none). |
| Id | Gets the identifier of the credential. |
| Name | Gets the name of the account (the empty string when there is none). |
| Origin | Gets the serialization of the origin of the credential ([[origin]]): the site that the credential signs in to. |
| Protocol | Gets the protocol of the identity provider, or null. |
| Provider | Gets the serialization of the origin of the identity provider. |
| Type | Gets the type of the credential (the [[type]] of its interface, e.g. password or public-key). |
IconUrl
FederatedCredential.csGets the URL of the image of the account (the empty string when there is none).
public string IconUrl { get; }Gets the name of the account (the empty string when there is none).
public string Name { get; }Property value
See also
Origin
FederatedCredential.csProtocol
FederatedCredential.csGets the protocol of the identity provider, or null.
public string? Protocol { get; }Provider
FederatedCredential.csGets 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; }