forked from modelcontextprotocol/csharp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExchangeJwtBearerGrantOptions.cs
More file actions
32 lines (27 loc) · 1.06 KB
/
Copy pathExchangeJwtBearerGrantOptions.cs
File metadata and controls
32 lines (27 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
namespace ModelContextProtocol.Authentication;
/// <summary>
/// Options for exchanging a JWT Authorization Grant for an access token via RFC 7523.
/// </summary>
internal sealed class ExchangeJwtBearerGrantOptions
{
/// <summary>
/// Gets or sets the MCP Server's authorization server token endpoint URL.
/// </summary>
public required string TokenEndpoint { get; set; }
/// <summary>
/// Gets or sets the JWT Authorization Grant (JAG) assertion obtained from token exchange.
/// </summary>
public required string Assertion { get; set; }
/// <summary>
/// Gets or sets the client ID for authentication with the MCP authorization server.
/// </summary>
public required string ClientId { get; set; }
/// <summary>
/// Gets or sets the client secret for authentication with the MCP authorization server. Optional.
/// </summary>
public string? ClientSecret { get; set; }
/// <summary>
/// Gets or sets the scopes to request (space-separated). Optional.
/// </summary>
public string? Scope { get; set; }
}