IdentityProviderRequestOptions Class

An identity provider requested by navigator.credentials.get({ identity }) (https://w3c-fedid.github.io/FedCM/#dictdef-identityproviderrequestoptions).

public sealed class IdentityProviderRequestOptions : IdentityProviderConfig
Inheritance
IdentityProviderConfig IdentityProviderRequestOptions

Constructors

NameDescription
IdentityProviderRequestOptions()

IdentityProviderRequestOptions()

  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public IdentityProviderRequestOptions()

No documentation is available.

Properties

NameDescription
DomainHintGets the domain hint: only the accounts whose domain_hints contain it (any domain hint for any) are shown, or null.
FieldsGets the fields of the account that the site requests (e.g. name, email, picture), or null for the default fields.
LoginHintGets the login hint: only the accounts whose login_hints contain it are shown, or null.
NonceGets the nonce sent to the identity assertion endpoint, or null. The member is deprecated (the specification passes it in IdentityProviderRequestOptions.Params), but the browsers and the web-platform-tests still use it.
ParamsGets the custom parameters sent to the identity assertion endpoint as JSON (a value of the script, serialized with JSON.stringify()), or null.

Gets the domain hint: only the accounts whose domain_hints contain it (any domain hint for any) are shown, or null.

public string? DomainHint { get; init; }

Gets the fields of the account that the site requests (e.g. name, email, picture), or null for the default fields.

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

Gets the login hint: only the accounts whose login_hints contain it are shown, or null.

public string? LoginHint { get; init; }

Gets the nonce sent to the identity assertion endpoint, or null. The member is deprecated (the specification passes it in IdentityProviderRequestOptions.Params), but the browsers and the web-platform-tests still use it.

public string? Nonce { get; init; }

Gets the custom parameters sent to the identity assertion endpoint as JSON (a value of the script, serialized with JSON.stringify()), or null.

public object? Params { get; init; }