Class IdentityAssertionGrantException
- Namespace
- ModelContextProtocol.Authentication
- Assembly
- ModelContextProtocol.Core.dll
Represents an error that occurred during a Cross-Application Access authorization operation (token exchange per RFC 8693, and JWT bearer grant per RFC 7523).
public sealed class IdentityAssertionGrantException : Exception, ISerializable
- Inheritance
-
IdentityAssertionGrantException
- Implements
- Inherited Members
Constructors
IdentityAssertionGrantException(string, string?, string?, string?)
Initializes a new instance of the IdentityAssertionGrantException class.
public IdentityAssertionGrantException(string message, string? errorCode = null, string? errorDescription = null, string? errorUri = null)
Parameters
messagestringThe error message.
errorCodestringThe OAuth error code.
errorDescriptionstringThe human-readable error description.
errorUristringThe error URI.
Properties
ErrorCode
Gets the OAuth error code, if available (e.g., "invalid_request", "invalid_grant").
public string? ErrorCode { get; }
Property Value
ErrorDescription
Gets the human-readable error description from the OAuth error response.
public string? ErrorDescription { get; }
Property Value
ErrorUri
Gets the URI identifying a human-readable web page with error information.
public string? ErrorUri { get; }