Dela via


ClientCredential Class

Definition

Caution

Use ConfidentialClientApplicationBuilder.WithCertificate or WithClientSecret instead. See https://aka.ms/msal-net-3-breaking-changes.

Meant to be used in confidential client applications, an instance of ClientCredential is passed to the constructors of (ConfidentialClientApplication) as credentials proving that the application (the client) is what it claims it is. These credentials can be either a client secret (an application password) or a certificate. This class has one constructor for each case. These credentials are added in the application registration portal (in the secret section).

[System.Obsolete("Use ConfidentialClientApplicationBuilder.WithCertificate or WithClientSecret instead. See https://aka.ms/msal-net-3-breaking-changes. ", true)]
public sealed class ClientCredential
[<System.Obsolete("Use ConfidentialClientApplicationBuilder.WithCertificate or WithClientSecret instead. See https://aka.ms/msal-net-3-breaking-changes. ", true)>]
type ClientCredential = class
Public NotInheritable Class ClientCredential
Inheritance
ClientCredential
Attributes

Constructors

ClientCredential(ClientAssertionCertificate)

Constructor of client (application) credentials from a ClientAssertionCertificate

ClientCredential(String)

Constructor of client (application) credentials from a client secret, also known as the application password.

Applies to