First Commit

This commit is contained in:
Jorge Luis caudillo esparza
2026-05-09 16:36:57 -07:00
parent 96ad4c0d3e
commit d0c284d9c0
131 changed files with 4009 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
namespace ADS.Helpers.Auth.Models;
public sealed class AdsPrincipal
{
public int CveUser { get; init; }
public string? TenantId { get; init; }
public string? UserName { get; init; }
public int CveRole { get; init; }
public int CveEmpresa { get; init; }
public int CveCliente { get; init; }
public int[] CveModulos { get; init; } = [];
public string[] Permissions { get; init; } = [];
public Dictionary<string, string> Claims { get; init; } = new();
}

View File

@@ -0,0 +1,11 @@
namespace ADS.Helpers.Auth.Models;
public sealed class JwtOptions
{
public string Issuer { get; set; } = default!;
public string Audience { get; set; } = default!;
public string SigningKey { get; set; } = default!;
public bool ValidateLifetime { get; set; } = true;
public int ClockSkewMinutes { get; set; } = 5;
public int AccessTokenMinutes { get; set; } = 60;
}