using System.ComponentModel.DataAnnotations;

namespace MemberCenter.Web.Models.Admin;

public sealed class OAuthClientFormViewModel
{
    public Guid? TenantId { get; set; }

    [Required]
    public string Name { get; set; } = string.Empty;

    [Required]
    public string ClientType { get; set; } = "public";

    [Required]
    public string Usage { get; set; } = "tenant_api";

    public string RedirectUris { get; set; } = string.Empty;
    public IReadOnlyList<MemberCenter.Application.Models.Admin.TenantDto> Tenants { get; set; }
        = Array.Empty<MemberCenter.Application.Models.Admin.TenantDto>();

    public string? ClientId { get; set; }
    public string? ClientSecret { get; set; }
}
