Table of Contents

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

message string

The error message.

errorCode string

The OAuth error code.

errorDescription string

The human-readable error description.

errorUri string

The error URI.

Properties

ErrorCode

Gets the OAuth error code, if available (e.g., "invalid_request", "invalid_grant").

public string? ErrorCode { get; }

Property Value

string

ErrorDescription

Gets the human-readable error description from the OAuth error response.

public string? ErrorDescription { get; }

Property Value

string

ErrorUri

Gets the URI identifying a human-readable web page with error information.

public string? ErrorUri { get; }

Property Value

string