MsalError.InvalidCredentialMaterial Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 orSendCertificateOverMtls because mTLS requires a certificate
to bind the token to the TLS transport.
Mitigation:
Use a certificate-based credential viaWithCertificate(),
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