feat: Add Enterprise Managed Authorization (SEP-990) support (#1305)
This commit is contained in:
parent
d7faa6b064
commit
96a3ddff69
1 changed files with 1695 additions and 2 deletions
|
|
@ -0,0 +1,37 @@
|
|||
namespace ModelContextProtocol.Authentication;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the response from a JWT Bearer grant (RFC 7523) access token request.
|
||||
/// </summary>
|
||||
internal sealed class JwtBearerAccessTokenResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the OAuth access token.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyName("access_token")]
|
||||
public string AccessToken { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the token type. This should be "Bearer".
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyName("token_type")]
|
||||
public string TokenType { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the lifetime in seconds of the access token.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
public int? ExpiresIn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the refresh token.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refresh_token")]
|
||||
public string? RefreshToken { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the scope of the access token.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scope")]
|
||||
public string? Scope { get; set; }
|
||||
}
|
||||
Loading…
Reference in a new issue