Authorization Support (Using ASP.NET Core Native AuthN/AuthZ Integration) (#377)
This commit is contained in:
parent
cd8e5d5f7f
commit
cdf88e7f5d
1 changed files with 4207 additions and 126 deletions
|
|
@ -0,0 +1,21 @@
|
|||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ModelContextProtocol.TestOAuthServer;
|
||||
|
||||
/// <summary>
|
||||
/// Represents an OAuth error response.
|
||||
/// </summary>
|
||||
internal sealed class OAuthErrorResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the error code.
|
||||
/// </summary>
|
||||
[JsonPropertyName("error")]
|
||||
public required string Error { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the error description.
|
||||
/// </summary>
|
||||
[JsonPropertyName("error_description")]
|
||||
public required string ErrorDescription { get; init; }
|
||||
}
|
||||
Loading…
Reference in a new issue