Table of Contents

Class FederatedCredential

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The FederatedCredential interface of the Credential Management API provides information about credentials from a federated identity provider. A federated identity provider is an entity that a website trusts to correctly authenticate a user, and that provides an API for that purpose. OpenID Connect is an example of a federated identity provider framework.
[Value("FederatedCredential")]
public class FederatedCredential : Credential, CredentialUserData
Inheritance
FederatedCredential
Implements
Inherited Members

Remarks

NOTE

The Federated Credential Management API (FedCM) provides a more complete solution for handling identity federation in the browser, and uses the IdentityCredential type.

In browsers that support it, an instance of this interface may be passed in the credential member of the init object for global Windowfetch.

See also on MDN

Constructors

FederatedCredential()

public FederatedCredential()

FederatedCredential(FederatedCredentialInit)

NOTE
Experimental
The FederatedCredential() constructor creates a new FederatedCredential object. In supporting browsers, an instance of this class may be passed the credential received from the init object for global Windowfetch.
public FederatedCredential(FederatedCredentialInit data)

Parameters

data FederatedCredentialInit

Remarks

Properties

Protocol

NOTE
Experimental
The protocol property of the
FederatedCredential interface returns a read-only
string containing a credential's federated identity protocol. If this
property is null, the protocol may be inferred from the
Provider property.
[Value("protocol")]
public string? Protocol { get; }

Property Value

string

A string containing a credential's federated identity protocol (e.g.
openidconnect).

Remarks

Provider

NOTE
Experimental
The provider property of the
FederatedCredential interface returns a string
containing a credential's federated identity provider.
[Value("provider")]
public string Provider { get; }

Property Value

string

A string containing a credential's federated identity provider.

Remarks