namespace Fengling.Console.Models.Dtos;
///
/// OAuth客户端详细信息DTO
///
public class OAuthClientDto
{
///
/// 客户端唯一标识符
///
public string Id { get; set; } = string.Empty;
///
/// 客户端ID,用于OAuth授权流程中的标识
///
public string ClientId { get; set; } = string.Empty;
///
/// 客户端显示名称
///
public string DisplayName { get; set; } = string.Empty;
///
/// 客户端描述信息
///
public string? Description { get; set; }
///
/// 回调地址列表,用于OAuth授权回调
///
public string[] RedirectUris { get; set; } = Array.Empty();
///
/// 注销回调地址列表
///
public string[] PostLogoutRedirectUris { get; set; } = Array.Empty();
///
/// 授权范围列表
///
public string[] Scopes { get; set; } = Array.Empty();
///
/// 授权类型列表
///
public string[] GrantTypes { get; set; } = Array.Empty();
///
/// 客户端类型:public(公开客户端)或 confidential(机密客户端)
///
public string? ClientType { get; set; }
///
/// 授权同意类型:implicit、explicit或system
///
public string? ConsentType { get; set; }
///
/// 客户端状态:active、inactive或suspended
///
public string Status { get; set; } = "active";
}
///
/// OAuth客户端列表分页结果DTO
///
public class OAuthClientListDto : PagedResultDto
{
}