feat: Add Enterprise Managed Authorization (SEP-990) support (#1305)

This commit is contained in:
Aniket Anil Kumar 2026-06-03 20:08:08 +05:30 • committed by Jeff Handley
commit 96a3ddff69

View file

@ -0,0 +1,20 @@
namespace ModelContextProtocol.Authentication;
/// <summary>
/// Context provided to the <see cref="IdentityAssertionGrantIdTokenCallback"/> for a Cross-Application Access
/// authorization flow. Contains the URLs discovered during the OAuth flow needed for the token exchange step.
/// </summary>
public sealed class IdentityAssertionGrantContext
{
/// <summary>
/// Gets the MCP resource server URL (i.e., the <c>resource</c> parameter for token exchange).
/// This is the URL of the MCP server being accessed.
/// </summary>
public required Uri ResourceUrl { get; init; }
/// <summary>
/// Gets the MCP authorization server URL (i.e., the <c>audience</c> parameter for token exchange).
/// This is the URL of the authorization server protecting the MCP resource.
/// </summary>
public required Uri AuthorizationServerUrl { get; init; }
}