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
24
tests/ModelContextProtocol.TestOAuthServer/ClientInfo.cs
Normal file
24
tests/ModelContextProtocol.TestOAuthServer/ClientInfo.cs
Normal 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; } = [];
|
||||
}
|
||||
Loading…
Reference in a new issue