Authorization Support (Using ASP.NET Core Native AuthN/AuthZ Integration) (#377)

This commit is contained in:
Den Delimarsky 🌺 2025-07-03 14:39:28 -07:00 • committed by GitHub
commit cdf88e7f5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,24 @@
using System.Text.Json.Serialization;
namespace ModelContextProtocol.TestOAuthServer;
/// <summary>
/// Represents client information for OAuth flow.
/// </summary>
internal sealed class ClientInfo
{
/// <summary>
/// Gets or sets the client ID.
/// </summary>
public required string ClientId { get; init; }
/// <summary>
/// Gets or sets the client secret.
/// </summary>
public required string ClientSecret { get; init; }
/// <summary>
/// Gets or sets the list of redirect URIs allowed for this client.
/// </summary>
public List<string> RedirectUris { get; init; } = [];
}