using FluentValidation; namespace Vegasco.Server.Api.Authentication; public class JwtOptions { public const string SectionName = "JWT"; public string ValidAudience { get; set; } = ""; public string MetadataUrl { get; set; } = ""; public string? NameClaimType { get; set; } public bool AllowHttpMetadataUrl { get; set; } } public class JwtOptionsValidator : AbstractValidator { public JwtOptionsValidator() { RuleFor(x => x.ValidAudience) .NotEmpty(); RuleFor(x => x.MetadataUrl) .NotEmpty(); } }