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,26 @@
namespace ADS.Helpers.Auth.Token;
public static class AdsGrantTypes
{
public const string Password = "password";
public const string ClientCredentials = "client_credentials";
}
public sealed class AdsTokenRequest
{
public string GrantType { get; set; } = AdsGrantTypes.Password;
// password
public string? UserName { get; set; }
public string? Password { get; set; }
// client_credentials
public string? ClientId { get; set; }
public string? ClientSecret { get; set; }
// multitenant / contexto
public string? TenantId { get; set; }
// opcional: scope
public string? Scope { get; set; }
}

View File

@@ -0,0 +1,9 @@
namespace ADS.Helpers.Auth.Token;
public sealed class AdsTokenResult
{
public string AccessToken { get; set; } = default!;
public string TokenType { get; set; } = "Bearer";
public int ExpiresIn { get; set; }
public string? Scope { get; set; }
}