sozsoft-platform/api/modules/Sozsoft.Mcp/Sozsoft.Mcp.Application.Contracts/Dtos/McpOAuthDtos.cs

40 lines
1.1 KiB
C#
Raw Normal View History

2026-09-10 14:40:43 +00:00
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; }
}