40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
|
|
using System.Collections.Generic;
|
|||
|
|
|
|||
|
|
namespace Sozsoft.Mcp.Dtos;
|
|||
|
|
|
|||
|
|
/// <summary>Dinamik istemci kaydi (RFC 7591) istegi.</summary>
|
|||
|
|
public class McpClientRegistrationRequestDto
|
|||
|
|
{
|
|||
|
|
public string? ClientName { get; set; }
|
|||
|
|
|
|||
|
|
public List<string> RedirectUris { get; set; } = [];
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Dinamik istemci kaydinin sonucu. Kayit basarisizsa <see cref="Error"/> RFC 7591 hata kodunu
|
|||
|
|
/// tasir ve diger alanlar bos kalir.
|
|||
|
|
/// </summary>
|
|||
|
|
public class McpClientRegistrationResultDto
|
|||
|
|
{
|
|||
|
|
public string? ClientId { get; set; }
|
|||
|
|
|
|||
|
|
public string? ClientName { get; set; }
|
|||
|
|
|
|||
|
|
public List<string> RedirectUris { get; set; } = [];
|
|||
|
|
|
|||
|
|
public List<string> GrantTypes { get; set; } = [];
|
|||
|
|
|
|||
|
|
public List<string> ResponseTypes { get; set; } = [];
|
|||
|
|
|
|||
|
|
/// <summary>Genel istemci: token ucunda gizli anahtar kullanilmaz, PKCE zorunludur.</summary>
|
|||
|
|
public string TokenEndpointAuthMethod { get; set; } = "none";
|
|||
|
|
|
|||
|
|
public string? Scope { get; set; }
|
|||
|
|
|
|||
|
|
public long ClientIdIssuedAt { get; set; }
|
|||
|
|
|
|||
|
|
public string? Error { get; set; }
|
|||
|
|
|
|||
|
|
public string? ErrorDescription { get; set; }
|
|||
|
|
}
|