First Commit
This commit is contained in:
22
Helpers/ADS.Helpers.Auth/Models/AdsPrincipal.cs
Normal file
22
Helpers/ADS.Helpers.Auth/Models/AdsPrincipal.cs
Normal 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();
|
||||
}
|
||||
11
Helpers/ADS.Helpers.Auth/Models/JwtOptions.cs
Normal file
11
Helpers/ADS.Helpers.Auth/Models/JwtOptions.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user