MsalError.InvalidCredentialMaterial Field

Definition

What happened?

The configured credential type is not compatible with the requested authentication mode. For example, a client secret cannot be used with mTLS Proof-of-Possession or SendCertificateOverMtls because mTLS requires a certificate to bind the token to the TLS transport.

Mitigation:

Use a certificate-based credential via WithCertificate(), or a delegate that returns a ClientSignedAssertion with a TokenBindingCertificate when mTLS Proof-of-Possession is required.
public const string InvalidCredentialMaterial;
val mutable InvalidCredentialMaterial : string
Public Const InvalidCredentialMaterial As String 

Field Value

Applies to