initial commit

develop
Al Garcia 2 years ago
commit 786094ce84
  1. BIN
      .vs/AOLBackend/DesignTimeBuild/.dtbcache.v2
  2. BIN
      .vs/AOLBackend/FileContentIndex/1b5dd8ab-46ad-4548-96a6-b8b9b955cb44.vsidx
  3. BIN
      .vs/AOLBackend/FileContentIndex/2174af27-10c9-4dcf-9b50-184277acf9c3.vsidx
  4. BIN
      .vs/AOLBackend/FileContentIndex/8cd40bd6-e8e8-4dd1-b916-6b50725491a7.vsidx
  5. BIN
      .vs/AOLBackend/FileContentIndex/ec27859a-5b7b-4230-87ee-d8695443d42a.vsidx
  6. 0
      .vs/AOLBackend/FileContentIndex/read.lock
  7. 1011
      .vs/AOLBackend/config/applicationhost.config
  8. BIN
      .vs/AOLBackend/v17/.futdcache.v1
  9. BIN
      .vs/AOLBackend/v17/.suo
  10. BIN
      .vs/ProjectEvaluation/aolbackend.metadata.v2
  11. BIN
      .vs/ProjectEvaluation/aolbackend.projects.v2
  12. 19
      AOLBackend.csproj
  13. 7
      AOLBackend.csproj.user
  14. 25
      AOLBackend.sln
  15. 19
      Context/DapperContext.cs
  16. 9
      Contracts/IMenuRepository.cs
  17. 26
      Contracts/IUsuarioRepository.cs
  18. 85
      Controllers/Usuarios/AuthController.cs
  19. 134
      Controllers/Usuarios/UsuariosController.cs
  20. 33
      Controllers/WeatherForecastController.cs
  21. 8
      DTO/DTOLogin.cs
  22. 8
      DTO/Usuario/DTOClonarUsuario.cs
  23. 8
      DTO/Usuario/DTOUsuarioShort.cs
  24. 11
      Models/IMenu.cs
  25. 37
      Models/IUsuarios.cs
  26. 57
      Program.cs
  27. 31
      Properties/launchSettings.json
  28. 24
      Repository/MenuRepository.cs
  29. 138
      Repository/UsuariosRepository.cs
  30. 55
      Services/Tools/CryptDecrypt.cs
  31. 13
      WeatherForecast.cs
  32. 17
      appsettings.Development.json
  33. 31
      appsettings.json
  34. 436
      bin/Debug/net6.0/AOLBackend.deps.json
  35. BIN
      bin/Debug/net6.0/AOLBackend.dll
  36. BIN
      bin/Debug/net6.0/AOLBackend.exe
  37. BIN
      bin/Debug/net6.0/AOLBackend.pdb
  38. 19
      bin/Debug/net6.0/AOLBackend.runtimeconfig.json
  39. BIN
      bin/Debug/net6.0/Dapper.dll
  40. BIN
      bin/Debug/net6.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll
  41. BIN
      bin/Debug/net6.0/Microsoft.IdentityModel.Abstractions.dll
  42. BIN
      bin/Debug/net6.0/Microsoft.IdentityModel.JsonWebTokens.dll
  43. BIN
      bin/Debug/net6.0/Microsoft.IdentityModel.Logging.dll
  44. BIN
      bin/Debug/net6.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
  45. BIN
      bin/Debug/net6.0/Microsoft.IdentityModel.Protocols.dll
  46. BIN
      bin/Debug/net6.0/Microsoft.IdentityModel.Tokens.dll
  47. BIN
      bin/Debug/net6.0/Microsoft.OpenApi.dll
  48. BIN
      bin/Debug/net6.0/Swashbuckle.AspNetCore.Swagger.dll
  49. BIN
      bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll
  50. BIN
      bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll
  51. BIN
      bin/Debug/net6.0/System.Data.SqlClient.dll
  52. BIN
      bin/Debug/net6.0/System.IdentityModel.Tokens.Jwt.dll
  53. 17
      bin/Debug/net6.0/appsettings.Development.json
  54. 31
      bin/Debug/net6.0/appsettings.json
  55. BIN
      bin/Debug/net6.0/runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll
  56. BIN
      bin/Debug/net6.0/runtimes/win-arm64/native/sni.dll
  57. BIN
      bin/Debug/net6.0/runtimes/win-x64/native/sni.dll
  58. BIN
      bin/Debug/net6.0/runtimes/win-x86/native/sni.dll
  59. BIN
      bin/Debug/net6.0/runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll
  60. 95
      obj/AOLBackend.csproj.nuget.dgspec.json
  61. 22
      obj/AOLBackend.csproj.nuget.g.props
  62. 6
      obj/AOLBackend.csproj.nuget.g.targets
  63. 4
      obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs
  64. 23
      obj/Debug/net6.0/AOLBackend.AssemblyInfo.cs
  65. 1
      obj/Debug/net6.0/AOLBackend.AssemblyInfoInputs.cache
  66. 16
      obj/Debug/net6.0/AOLBackend.GeneratedMSBuildEditorConfig.editorconfig
  67. 17
      obj/Debug/net6.0/AOLBackend.GlobalUsings.g.cs
  68. 0
      obj/Debug/net6.0/AOLBackend.MvcApplicationPartsAssemblyInfo.cache
  69. 17
      obj/Debug/net6.0/AOLBackend.MvcApplicationPartsAssemblyInfo.cs
  70. BIN
      obj/Debug/net6.0/AOLBackend.assets.cache
  71. BIN
      obj/Debug/net6.0/AOLBackend.csproj.AssemblyReference.cache
  72. 0
      obj/Debug/net6.0/AOLBackend.csproj.BuildWithSkipAnalyzers
  73. 0
      obj/Debug/net6.0/AOLBackend.csproj.CopyComplete
  74. 1
      obj/Debug/net6.0/AOLBackend.csproj.CoreCompileInputs.cache
  75. 42
      obj/Debug/net6.0/AOLBackend.csproj.FileListAbsolute.txt
  76. BIN
      obj/Debug/net6.0/AOLBackend.dll
  77. 1
      obj/Debug/net6.0/AOLBackend.genruntimeconfig.cache
  78. BIN
      obj/Debug/net6.0/AOLBackend.pdb
  79. BIN
      obj/Debug/net6.0/apphost.exe
  80. BIN
      obj/Debug/net6.0/ref/AOLBackend.dll
  81. BIN
      obj/Debug/net6.0/refint/AOLBackend.dll
  82. 11
      obj/Debug/net6.0/staticwebassets.build.json
  83. 1189
      obj/project.assets.json
  84. 35
      obj/project.nuget.cache
  85. 19
      obj/staticwebassets.pack.sentinel

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Dapper" Version="2.0.123" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.8" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="6.22.0" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.22.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.3" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.22.0" />
</ItemGroup>
</Project>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Controller_SelectedScaffolderID>ApiControllerWithActionsScaffolder</Controller_SelectedScaffolderID>
<Controller_SelectedScaffolderCategoryPath>root/Common/Api</Controller_SelectedScaffolderCategoryPath>
</PropertyGroup>
</Project>

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.2.32526.322
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AOLBackend", "AOLBackend.csproj", "{7200C42A-214F-4EEB-B703-79C90AD24815}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7200C42A-214F-4EEB-B703-79C90AD24815}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7200C42A-214F-4EEB-B703-79C90AD24815}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7200C42A-214F-4EEB-B703-79C90AD24815}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7200C42A-214F-4EEB-B703-79C90AD24815}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1868CC6D-99CC-4682-B36A-3B28E5F09813}
EndGlobalSection
EndGlobal

@ -0,0 +1,19 @@
//using Microsoft.Data.SqlClient;
using System.Data;
using System.Data.SqlClient;
namespace AOLBackend.Context
{
public class DapperContext
{
private readonly IConfiguration _configuration;
private readonly string _connectionString;
public DapperContext(IConfiguration configuration)
{
_configuration = configuration;
_connectionString = _configuration.GetConnectionString("SqlConnection");
}
public IDbConnection CreateConnection()
=> new SqlConnection(_connectionString);
}
}

@ -0,0 +1,9 @@
using AOLBackend.Models;
namespace AOLBackend.Contracts
{
public interface IMenuRepository
{
public Task<IEnumerable<IMenu>> GetItemsMenu(IUsuarios user);
}
}

@ -0,0 +1,26 @@
using AOLBackend.DTO;
using AOLBackend.DTO.Usuario;
using AOLBackend.Models;
namespace AOLBackend.Contracts
{
public interface IUsuarioRepository
{
public Task<IEnumerable<DTOUsuarioShort>> GetAllUsuariosShort();
public Task<IEnumerable<IUsuarios>> GetAllUsuarios();
public Task<IUsuarios> GetUsuarioById(int id);
public Task<IUsuarios> GetUsuario(DTOLogin user);
public Task<IUsuarios> SearchUsuario(DTOLogin user);
public Task<DTOLogin> ResetPassword(DTOLogin user);
public Task<IUsuarios> CreateUsuario(IUsuarios user);
public Task<IEnumerable<DTOClonarUsuario>> ClonarUsuario(DTOClonarUsuario user);
}
}

@ -0,0 +1,85 @@
using AOLBackend.Contracts;
using AOLBackend.DTO;
using AOLBackend.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.IdentityModel.Tokens;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace AOLBackend.Controllers.Usuarios
{
[Route("api/[controller]")]
[ApiController]
public class AuthController : ControllerBase
{
public IConfiguration _config;
private readonly IUsuarioRepository _usuariosRepo;
private readonly IMenuRepository _menuRepo;
public AuthController(IConfiguration config, IUsuarioRepository usuariosRepo, IMenuRepository menuRepo)
{
_config = config;
_usuariosRepo = usuariosRepo;
_menuRepo = menuRepo;
}
[HttpPost]
public async Task<IActionResult> Post(DTOLogin _userData)
{
if (_userData.Contrasena == _config.GetValue<string>("DefaultUser:Password"))
{
return StatusCode(401, "La primera vez que accese debera cambiar su contraseña!");
}
if (_userData != null && _userData.Usuario != null && _userData.Contrasena != null)
{
var user = await _usuariosRepo.GetUsuario(_userData);
if (user == null) return BadRequest("Invalid credentials");
if (user != null)
{
var menu = await _menuRepo.GetItemsMenu(user);
var claims = new List<Claim>();
claims.Add(new Claim(JwtRegisteredClaimNames.Sub, _config["Jwt:Subject"]));
claims.Add(new Claim(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString()));
claims.Add(new Claim(JwtRegisteredClaimNames.Iat, DateTime.UtcNow.ToString()));
claims.Add(new Claim("UserId", user.Id.ToString()));
claims.Add(new Claim("Usuario", user.Usuario));
claims.Add(new Claim("Departamento", (user.sDept ?? user.sDept ?? "No asignado")));
claims.Add(new Claim("UserType", (user != null) ? user.TipoUsuario.ToString() : "0"));
foreach (IMenu item in menu) { claims.Add(new Claim(ClaimTypes.Role, item.Url)); }
var key = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(_config["Jwt:Key"]));
var signIn = new SigningCredentials(key, SecurityAlgorithms.HmacSha256);
var token = new JwtSecurityToken(
_config["Jwt:Issuer"],
_config["Jwt:Audience"],
claims,
expires: DateTime.UtcNow.AddHours(Int32.Parse(_config["Jwt:ExpirationHours"])),
//expires: DateTime.UtcNow.AddMinutes(5),
signingCredentials: signIn);
var _token = new JwtSecurityTokenHandler().WriteToken(token);
return new OkObjectResult(new { menu = menu, token = _token });
}
else
{
return BadRequest("Invalid credentials");
}
}
else
{
return BadRequest();
}
}
[Authorize]
[Route("Validate")]
[HttpGet]
public IActionResult GetValidation()
{
return StatusCode(200, "Its Ok");
}
}
}

@ -0,0 +1,134 @@
using AOLBackend.Contracts;
using AOLBackend.DTO;
using AOLBackend.DTO.Usuario;
using AOLBackend.Models;
using Microsoft.AspNetCore.Mvc;
namespace AOLBackend.Controllers.Usuarios
{
[Route("api/[controller]")]
[ApiController]
public class UsuariosController : ControllerBase
{
private readonly IUsuarioRepository _usuariosRepo;
// private readonly IConfiguration _config;
public UsuariosController(IUsuarioRepository usuariosRepo, IConfiguration config) { _usuariosRepo = usuariosRepo; }
[Route("getUsuarioById")]
[HttpGet]
public async Task<IActionResult> GetAllUsuarios(int id)
{
try
{
var usuario = await _usuariosRepo.GetUsuarioById(id);
if (usuario == null) return NotFound();
return Ok(usuario);
}
catch (Exception ex) { return StatusCode(500, ex.Message); }
}
[Route("getAllUsuarios")]
[HttpGet]
public async Task<IActionResult> GetAllUsuarios()
{
try
{
var usuarios = await _usuariosRepo.GetAllUsuarios();
return Ok(usuarios);
}
catch (Exception ex) { return StatusCode(500, ex.Message); }
}
[Route("getAllUsuariosShort")]
[HttpGet]
public async Task<IActionResult> GetAllUsuariosShort()
{
try
{
var usuarios = await _usuariosRepo.GetAllUsuariosShort();
return Ok(usuarios);
}
catch (Exception ex) { return StatusCode(500, ex.Message); }
}
[Route("Auth")]
[HttpPost]
public async Task<IActionResult> Auth(DTOLogin user)
{
try
{
var usuarios = await _usuariosRepo.GetUsuario(user);
return Ok(usuarios);
}
catch (Exception ex) { return StatusCode(500, ex.Message); }
}
[Route("resetPassword")]
[HttpPost]
public async Task<IActionResult> ResetPassword(DTOLogin user)
{
try
{
var result = await _usuariosRepo.ResetPassword(user);
if (result == null)
{
return StatusCode(400, "Cuenta de usuario no existe");
}
return Ok(result);
}
catch (Exception ex)
{
return StatusCode(500, ex);
}
}
[Route("searchUsuario")]
[HttpPost]
public async Task<IActionResult> SearchUsuario(DTOLogin user)
{
try
{
var result = await _usuariosRepo.SearchUsuario(user);
if (result != null) return StatusCode(409, new { message = "Usuario registrado previamente" });
return Ok(new { message = "Usuario libre, no registrado previamente" });
}
catch (Exception ex)
{
return StatusCode(500, ex);
}
}
[Route("createUser")]
[HttpPost]
public async Task<IActionResult> POST(IUsuarios user)
{
try
{
var usuario = await _usuariosRepo.CreateUsuario(user);
if (user.Id == 0)
{
/* Utilerias email = new Utilerias(_config);
Boolean sendOk = email.SendEmail("", usuario);*/
}
return Ok(usuario);
}
catch (Exception ex) { return StatusCode(500, ex.Message); }
}
[Route("clonarUsuario")]
[HttpPost]
public async Task<IActionResult> POST(DTOClonarUsuario user)
{
try
{
var usuarios = await _usuariosRepo.ClonarUsuario(user);
return Ok(usuarios);
}
catch (Exception ex) { return StatusCode(500, ex.Message); }
}
}
}

@ -0,0 +1,33 @@
using Microsoft.AspNetCore.Mvc;
namespace AOLBackend.Controllers
{
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
private readonly ILogger<WeatherForecastController> _logger;
public WeatherForecastController(ILogger<WeatherForecastController> logger)
{
_logger = logger;
}
[HttpGet(Name = "GetWeatherForecast")]
public IEnumerable<WeatherForecast> Get()
{
return Enumerable.Range(1, 5).Select(index => new WeatherForecast
{
Date = DateTime.Now.AddDays(index),
TemperatureC = Random.Shared.Next(-20, 55),
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
})
.ToArray();
}
}
}

@ -0,0 +1,8 @@
namespace AOLBackend.DTO
{
public class DTOLogin
{
public string Usuario { get; set; } = null!;
public string Contrasena { get; set; } = null!;
}
}

@ -0,0 +1,8 @@
namespace AOLBackend.DTO.Usuario
{
public class DTOClonarUsuario
{
public int IDUsuarioOrigen { get; set; } = 0!;
public int IdUsuarioDestino { get; set; } = 0!;
}
}

@ -0,0 +1,8 @@
namespace AOLBackend.DTO.Usuario
{
public class DTOUsuarioShort
{
public int id { get; set; } = 0!;
public string Usuario { get; set; } = null!;
}
}

@ -0,0 +1,11 @@
namespace AOLBackend.Models
{
public class IMenu
{
public int Id { get; set; }
public string Descripcion { get; set; } = null!;
public int PadreId { get; set; }
public int Posicion { get; set; }
public string Url { get; set; } = null!;
}
}

@ -0,0 +1,37 @@
namespace AOLBackend.Models
{
public class IUsuarios
{
public int Id { get; set; } = 0;
public string Usuario { get; set; } = null!;
public string Nombre { get; set; } = null!;
public string Contrasena { get; set; } = null!;
public string Correo { get; set; } = null!;
public byte TipoUsuario { get; set; } = 2;
public byte Activo { get; set; } = 1;
public string FechaAlta { get; set; } = null!;
public int UsuarioAlta { get; set; } = 0!;
public string FechaModifico { get; set; } = null!;
public int UsuarioModifico { get; set; } = 0!;
public string FechaElimino { get; set; } = null!;
public int UsuarioElimino { get; set; } = 0!;
public string MotivoElimino { get; set; } = null!;
public int IdModulo { get; set; } = 0!;
public int Dept { get; set; } = 0!;
public string? sDept { get; set; } = null!;
public int Tmercancia { get; set; } = 0!;
public string FechaUltimaVisita { get; set; } = null!;
public int Visitas { get; set; } = 0!;
public int Internos { get; set; } = 0!;
public int PermisoEspecial { get; set; } = 0!;
public int EstadoConfiguracion { get; set; } = 0!;
public string FechaValidacionConf { get; set; } = null!;
public string RealizoEncuesta { get; set; } = null!;
public int EncuestaActiva { get; set; } = 0!;
public string FechaLimiteEncuesta { get; set; } = null!;
public string CodigoAccesoM { get; set; } = null!;
public string TokenAccesoM { set; get; } = null!;
public string DeviceToken { get; set; } = null!;
public int IdPerfil { get; set; } = 0!;
}
}

@ -0,0 +1,57 @@
using AOLBackend.Context;
using AOLBackend.Contracts;
using AOLBackend.Repository;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.IdentityModel.Tokens;
using System.Text;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddSingleton<DapperContext>();
builder.Services.AddScoped<IUsuarioRepository, UsuariosRepository>();
builder.Services.AddScoped<IMenuRepository, MenuRepository>();
builder.Services.AddControllers();
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJwtBearer(options =>
{
options.RequireHttpsMetadata = false;
options.SaveToken = true;
options.TokenValidationParameters = new TokenValidationParameters()
{
ValidateIssuer = true,
ValidateAudience = true,
ValidAudience = builder.Configuration["Jwt:Audience"],
ValidIssuer = builder.Configuration["Jwt:Issuer"],
IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(builder.Configuration["Jwt:Key"]))
};
});
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
//services cors
builder.Services.AddCors(p => p.AddPolicy("corsapp", builder =>
{
//builder.WithOrigins("*").AllowAnyMethod().AllowAnyHeader();
builder.WithOrigins("http://localhost:3000",
"http://localhost:5000",
"https://localhost:5001",
"http://localhost",
"http://192.168.100.242:3000",
"http://74.208.65.168",
"http://reportes.gemcousa.com").AllowAnyMethod().AllowAnyHeader();
}));
var app = builder.Build();
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.UseAuthentication();
app.UseCors("corsapp");
app.UseAuthorization();
app.MapControllers();
app.Run();

@ -0,0 +1,31 @@
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:1112",
"sslPort": 44300
}
},
"profiles": {
"AOLBackend": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:7000;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

@ -0,0 +1,24 @@
using AOLBackend.Context;
using AOLBackend.Contracts;
using AOLBackend.Models;
using Dapper;
using System.Data;
namespace AOLBackend.Repository
{
public class MenuRepository : IMenuRepository
{
private readonly DapperContext _context;
public MenuRepository(DapperContext context) { _context = context; }
public async Task<IEnumerable<IMenu>> GetItemsMenu(IUsuarios user)
{
var query = "[Menu.Get]";
using (var connection = _context.CreateConnection())
{
var menu = await connection.QueryAsync<IMenu>(query, new { @id = user.Id }, commandType: CommandType.StoredProcedure);
return menu.ToList();
}
}
}
}

@ -0,0 +1,138 @@
using AOLBackend.Context;
using AOLBackend.Contracts;
using AOLBackend.DTO;
using AOLBackend.DTO.Usuario;
using AOLBackend.Models;
using AOLBackend.Services.Tools;
using Dapper;
using System.Data;
namespace AOLBackend.Repository
{
public class UsuariosRepository : IUsuarioRepository
{
private readonly DapperContext _context;
private readonly IConfiguration _config;
public UsuariosRepository(DapperContext context, IConfiguration config)
{
_context = context;
_config = config;
}
public async Task<IEnumerable<DTOUsuarioShort>> GetAllUsuariosShort()
{
var query = "SELECT id, Usuario FROM Usuario WHERE Usuario<>'Admin'";
using (var connection = _context.CreateConnection())
{
var usuarios = await connection.QueryAsync<DTOUsuarioShort>(query);
return usuarios.ToList();
}
}
public async Task<IEnumerable<IUsuarios>> GetAllUsuarios()
{
var query = "SELECT * FROM Usuario";
using (var connection = _context.CreateConnection())
{
var usuarios = await connection.QueryAsync<IUsuarios>(query);
return usuarios.ToList();
}
}
public async Task<IUsuarios> GetUsuarioById(int id)
{
var query = "SELECT * FROM Usuario WHERE id=@id";
using (var connection = _context.CreateConnection())
{
var usuario = await connection.QueryAsync<IUsuarios>(query, new { id = id });
var usr = usuario.First();
return usr;
}
}
public async Task<IUsuarios> GetUsuario(DTOLogin user)
{
var query = "[Usuario.Get]";
using (var connection = _context.CreateConnection())
{
string passwordCrypto = CryptDecrypt.Encrypt(user.Contrasena);
var usuarios = await connection.QueryAsync<IUsuarios>(query,
new
{
Usuario = user.Usuario,
Contrasena = user.Contrasena,
@HashContrasena = passwordCrypto,
}, commandType: CommandType.StoredProcedure);
IUsuarios userFound = usuarios.First();
if (userFound == null) return userFound;
var hashed = CryptDecrypt.Decrypt(userFound.Contrasena);
if (hashed != user.Contrasena) return null;
return userFound;
}
}
public async Task<IUsuarios> SearchUsuario(DTOLogin user)
{
var query = "SELECT * FROM Usuario WHERE Usuario=@Usuario";
using (var connection = _context.CreateConnection())
{
var usuario = await connection.QueryAsync<IUsuarios>(query, new { @Usuario = user.Usuario });
var usr = usuario.First();
return usr;
}
}
public async Task<DTOLogin> ResetPassword(DTOLogin user)
{
var query = "resetPassword";
using (var connection = _context.CreateConnection())
{
var usuarios = await connection.QueryAsync<DTOLogin>(query, new
{
@Usuario = user.Usuario,
@Contrasena = user.Contrasena,
@HashContrasena = CryptDecrypt.Encrypt(user.Contrasena),
}, commandType: CommandType.StoredProcedure);
if (usuarios.Count() == 0) return null;
var userFound = usuarios.First();
return userFound;
}
}
public async Task<IUsuarios> CreateUsuario(IUsuarios user)
{
var query = "createUsuario";
using (var connection = _context.CreateConnection())
{
if (user.Id == 0) user.Contrasena = _config.GetValue<string>("DefaultUser:Password");
var usuario = await connection.QueryAsync<IUsuarios>(query, new
{
@id = user.Id,
@Usuario = user.Usuario,
@Nombre = user.Nombre,
@Contrasena = CryptDecrypt.Encrypt(user.Contrasena),
@Correo = user.Correo,
@TipoUsuario = user.TipoUsuario,
@Activo = user.Activo,
@UsuarioAlta = user.UsuarioAlta,
@IdPerfil = user.IdPerfil
}, commandType: CommandType.StoredProcedure);
return usuario.First();
}
}
public async Task<IEnumerable<DTOClonarUsuario>> ClonarUsuario(DTOClonarUsuario user)
{
var query = "clonarUsuario";
using (var connection = _context.CreateConnection())
{
var usuario = await connection.QueryAsync<DTOClonarUsuario>(query, new
{
@IdUsuarioOrigen = user.IDUsuarioOrigen,
@IdUsuarioDestino = user.IdUsuarioDestino
}, commandType: CommandType.StoredProcedure);
return usuario.ToList();
}
}
}
}

@ -0,0 +1,55 @@
using System.Security.Cryptography;
using System.Text;
namespace AOLBackend.Services.Tools
{
public class CryptDecrypt
{
private readonly static string key = "G3mc0H42hk3y2!0$2*2#n4813dc2h47p";
public static string Encrypt(string text)
{
byte[] iv = new byte[16];
byte[] array;
using (Aes aes = Aes.Create())
{
aes.Key = Encoding.UTF8.GetBytes(key);
aes.IV = iv;
ICryptoTransform encrypt = aes.CreateEncryptor(aes.Key, aes.IV);
using (MemoryStream ms = new MemoryStream())
{
using (CryptoStream cryptoStream = new CryptoStream((Stream)ms, encrypt, CryptoStreamMode.Write))
{
using (StreamWriter streamWriter = new StreamWriter(cryptoStream))
{
streamWriter.Write(text);
}
array = ms.ToArray();
}
}
}
return Convert.ToBase64String(array);
}
public static string Decrypt(string text)
{
byte[] iv = new byte[16];
byte[] buffer = Convert.FromBase64String(text);
using (Aes aes = Aes.Create())
{
aes.Key = Encoding.UTF8.GetBytes(key);
aes.IV = iv;
ICryptoTransform decryptor = aes.CreateDecryptor(aes.Key, aes.IV);
using (MemoryStream ms = new MemoryStream(buffer))
{
using (CryptoStream cryptoStream = new CryptoStream((Stream)ms, decryptor, CryptoStreamMode.Read))
{
using (StreamReader sr = new StreamReader(cryptoStream))
{
return sr.ReadToEnd();
}
}
}
}
}
}
}

@ -0,0 +1,13 @@
namespace AOLBackend
{
public class WeatherForecast
{
public DateTime Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string? Summary { get; set; }
}
}

@ -0,0 +1,17 @@
{
/* "ConnectionStrings": {
"SqlConnection": "server=127.0.0.1,14033; database=GEMCO; User Id=sa;Password=toor1234.;Encrypt=False;"
}, */
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"pathArchivoElectronico": "C:\\downs\\ArchivoElectronicoSIR\\www.gemcousa.com\\SIR-GEMCO\\DOCS-SIR\\",
"pathTemp": "C:\\downs\\temp\\",
"pathFotosBodega": "c:\\data\\Bodega\\Fotos\\",
"pathZipCorresponsales": "C:\\data\\",
"CorresponsalesFilePath": "C:\\data\\",
"Allfiles": "C:\\data\\"
}

@ -0,0 +1,31 @@
{
"ConnectionStrings": {
"SqlConnection": "server=.; database=AOL; Integrated Security=true;TrustServerCertificate=True;"
// "SqlConnection": "server=127.0.0.1,14033; database=GEMCO; User Id=sa; Password=toor1234.; TrustServerCertificate=True;"
},
"DefaultUser": {
"Password": "Bienvenido123!"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"Jwt": {
"Key": "GFE1j5KLolZHDK9iKw5xK17Rz4ty7BlbXgnjPL6dNwVCCNQWU8uRGVyZmAZPWZMs4XX0phFMS849p25Lrwsn31Bi4J7GT2HQ9xeWlJLarJPDyoRZZvChpovwgrquQ9Pd",
"Issuer": "JWTAuthenticationServer",
"Audience": "JWTServicePostmanClient",
"Subject": "JWTServiceAccessToken",
"ExpirationHours": 4
},
"EmailServer": "146.20.161.11",
"EmailPort": 587,
"pathArchivoElectronico": "D:\\data\\ArchivoElectronicoSIR\\www.gemcousa.com\\SIR-GEMCO\\DOCS-SIR\\",
"pathTemp": "D:\\data\\temp\\",
"pathFotosBodega": "D:\\data\\Bodega\\Fotos\\",
"pathZipCorresponsales": "D:\\data\\Corresponsales\\Zips\\",
"CorresponsalesFilePath": "D:\\data\\Corresponsales\\",
"AllFiles": "D:\\data\\"
}

@ -0,0 +1,436 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"AOLBackend/1.0.0": {
"dependencies": {
"Dapper": "2.0.123",
"Microsoft.AspNetCore.Authentication.JwtBearer": "6.0.8",
"Microsoft.IdentityModel.JsonWebTokens": "6.22.0",
"Microsoft.IdentityModel.Tokens": "6.22.0",
"Swashbuckle.AspNetCore": "6.2.3",
"System.Data.SqlClient": "4.8.3",
"System.IdentityModel.Tokens.Jwt": "6.22.0"
},
"runtime": {
"AOLBackend.dll": {}
}
},
"Dapper/2.0.123": {
"runtime": {
"lib/net5.0/Dapper.dll": {
"assemblyVersion": "2.0.0.0",
"fileVersion": "2.0.123.33578"
}
}
},
"Microsoft.AspNetCore.Authentication.JwtBearer/6.0.8": {
"dependencies": {
"Microsoft.IdentityModel.Protocols.OpenIdConnect": "6.10.0"
},
"runtime": {
"lib/net6.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": {
"assemblyVersion": "6.0.8.0",
"fileVersion": "6.0.822.36316"
}
}
},
"Microsoft.CSharp/4.5.0": {},
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {},
"Microsoft.IdentityModel.Abstractions/6.22.0": {
"runtime": {
"lib/net6.0/Microsoft.IdentityModel.Abstractions.dll": {
"assemblyVersion": "6.22.0.0",
"fileVersion": "6.22.0.30727"
}
}
},
"Microsoft.IdentityModel.JsonWebTokens/6.22.0": {
"dependencies": {
"Microsoft.IdentityModel.Tokens": "6.22.0"
},
"runtime": {
"lib/net6.0/Microsoft.IdentityModel.JsonWebTokens.dll": {
"assemblyVersion": "6.22.0.0",
"fileVersion": "6.22.0.30727"
}
}
},
"Microsoft.IdentityModel.Logging/6.22.0": {
"dependencies": {
"Microsoft.IdentityModel.Abstractions": "6.22.0"
},
"runtime": {
"lib/net6.0/Microsoft.IdentityModel.Logging.dll": {
"assemblyVersion": "6.22.0.0",
"fileVersion": "6.22.0.30727"
}
}
},
"Microsoft.IdentityModel.Protocols/6.10.0": {
"dependencies": {
"Microsoft.IdentityModel.Logging": "6.22.0",
"Microsoft.IdentityModel.Tokens": "6.22.0"
},
"runtime": {
"lib/netstandard2.0/Microsoft.IdentityModel.Protocols.dll": {
"assemblyVersion": "6.10.0.0",
"fileVersion": "6.10.0.20330"
}
}
},
"Microsoft.IdentityModel.Protocols.OpenIdConnect/6.10.0": {
"dependencies": {
"Microsoft.IdentityModel.Protocols": "6.10.0",
"System.IdentityModel.Tokens.Jwt": "6.22.0"
},
"runtime": {
"lib/netstandard2.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": {
"assemblyVersion": "6.10.0.0",
"fileVersion": "6.10.0.20330"
}
}
},
"Microsoft.IdentityModel.Tokens/6.22.0": {
"dependencies": {
"Microsoft.CSharp": "4.5.0",
"Microsoft.IdentityModel.Logging": "6.22.0",
"System.Security.Cryptography.Cng": "4.5.0"
},
"runtime": {
"lib/net6.0/Microsoft.IdentityModel.Tokens.dll": {
"assemblyVersion": "6.22.0.0",
"fileVersion": "6.22.0.30727"
}
}
},
"Microsoft.NETCore.Platforms/3.1.0": {},
"Microsoft.OpenApi/1.2.3": {
"runtime": {
"lib/netstandard2.0/Microsoft.OpenApi.dll": {
"assemblyVersion": "1.2.3.0",
"fileVersion": "1.2.3.0"
}
}
},
"Microsoft.Win32.Registry/4.7.0": {
"dependencies": {
"System.Security.AccessControl": "4.7.0",
"System.Security.Principal.Windows": "4.7.0"
}
},
"runtime.native.System.Data.SqlClient.sni/4.7.0": {
"dependencies": {
"runtime.win-arm64.runtime.native.System.Data.SqlClient.sni": "4.4.0",
"runtime.win-x64.runtime.native.System.Data.SqlClient.sni": "4.4.0",
"runtime.win-x86.runtime.native.System.Data.SqlClient.sni": "4.4.0"
}
},
"runtime.win-arm64.runtime.native.System.Data.SqlClient.sni/4.4.0": {
"runtimeTargets": {
"runtimes/win-arm64/native/sni.dll": {
"rid": "win-arm64",
"assetType": "native",
"fileVersion": "4.6.25512.1"
}
}
},
"runtime.win-x64.runtime.native.System.Data.SqlClient.sni/4.4.0": {
"runtimeTargets": {
"runtimes/win-x64/native/sni.dll": {
"rid": "win-x64",
"assetType": "native",
"fileVersion": "4.6.25512.1"
}
}
},
"runtime.win-x86.runtime.native.System.Data.SqlClient.sni/4.4.0": {
"runtimeTargets": {
"runtimes/win-x86/native/sni.dll": {
"rid": "win-x86",
"assetType": "native",
"fileVersion": "4.6.25512.1"
}
}
},
"Swashbuckle.AspNetCore/6.2.3": {
"dependencies": {
"Microsoft.Extensions.ApiDescription.Server": "3.0.0",
"Swashbuckle.AspNetCore.Swagger": "6.2.3",
"Swashbuckle.AspNetCore.SwaggerGen": "6.2.3",
"Swashbuckle.AspNetCore.SwaggerUI": "6.2.3"
}
},
"Swashbuckle.AspNetCore.Swagger/6.2.3": {
"dependencies": {
"Microsoft.OpenApi": "1.2.3"
},
"runtime": {
"lib/net6.0/Swashbuckle.AspNetCore.Swagger.dll": {
"assemblyVersion": "6.2.3.0",
"fileVersion": "6.2.3.0"
}
}
},
"Swashbuckle.AspNetCore.SwaggerGen/6.2.3": {
"dependencies": {
"Swashbuckle.AspNetCore.Swagger": "6.2.3"
},
"runtime": {
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {
"assemblyVersion": "6.2.3.0",
"fileVersion": "6.2.3.0"
}
}
},
"Swashbuckle.AspNetCore.SwaggerUI/6.2.3": {
"runtime": {
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {
"assemblyVersion": "6.2.3.0",
"fileVersion": "6.2.3.0"
}
}
},
"System.Data.SqlClient/4.8.3": {
"dependencies": {
"Microsoft.Win32.Registry": "4.7.0",
"System.Security.Principal.Windows": "4.7.0",
"runtime.native.System.Data.SqlClient.sni": "4.7.0"
},
"runtime": {
"lib/netcoreapp2.1/System.Data.SqlClient.dll": {
"assemblyVersion": "4.6.1.3",
"fileVersion": "4.700.21.41603"
}
},
"runtimeTargets": {
"runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll": {
"rid": "unix",
"assetType": "runtime",
"assemblyVersion": "4.6.1.3",
"fileVersion": "4.700.21.41603"
},
"runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.6.1.3",
"fileVersion": "4.700.21.41603"
}
}
},
"System.IdentityModel.Tokens.Jwt/6.22.0": {
"dependencies": {
"Microsoft.IdentityModel.JsonWebTokens": "6.22.0",
"Microsoft.IdentityModel.Tokens": "6.22.0"
},
"runtime": {
"lib/net6.0/System.IdentityModel.Tokens.Jwt.dll": {
"assemblyVersion": "6.22.0.0",
"fileVersion": "6.22.0.30727"
}
}
},
"System.Security.AccessControl/4.7.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "3.1.0",
"System.Security.Principal.Windows": "4.7.0"
}
},
"System.Security.Cryptography.Cng/4.5.0": {},
"System.Security.Principal.Windows/4.7.0": {}
}
},
"libraries": {
"AOLBackend/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Dapper/2.0.123": {
"type": "package",
"serviceable": true,
"sha512": "sha512-RDFF4rBLLmbpi6pwkY7q/M6UXHRJEOerplDGE5jwEkP/JGJnBauAClYavNKJPW1yOTWRPIyfj4is3EaJxQXILQ==",
"path": "dapper/2.0.123",
"hashPath": "dapper.2.0.123.nupkg.sha512"
},
"Microsoft.AspNetCore.Authentication.JwtBearer/6.0.8": {
"type": "package",
"serviceable": true,
"sha512": "sha512-ktmldryRkyAMRQpluCZaltRvlcOrlE9SQDmnMOh+XTbck6Vi296UjvwdJb4ULU6PgvZh5j00KAp7uhjpcWQopA==",
"path": "microsoft.aspnetcore.authentication.jwtbearer/6.0.8",
"hashPath": "microsoft.aspnetcore.authentication.jwtbearer.6.0.8.nupkg.sha512"
},
"Microsoft.CSharp/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-kaj6Wb4qoMuH3HySFJhxwQfe8R/sJsNJnANrvv8WdFPMoNbKY5htfNscv+LHCu5ipz+49m2e+WQXpLXr9XYemQ==",
"path": "microsoft.csharp/4.5.0",
"hashPath": "microsoft.csharp.4.5.0.nupkg.sha512"
},
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==",
"path": "microsoft.extensions.apidescription.server/3.0.0",
"hashPath": "microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512"
},
"Microsoft.IdentityModel.Abstractions/6.22.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-iI+9V+2ciCrbheeLjpmjcqCnhy+r6yCoEcid3nkoFWerHgjVuT6CPM4HODUTtUPe1uwks4wcnAujJ8u+IKogHQ==",
"path": "microsoft.identitymodel.abstractions/6.22.0",
"hashPath": "microsoft.identitymodel.abstractions.6.22.0.nupkg.sha512"
},
"Microsoft.IdentityModel.JsonWebTokens/6.22.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-NfE53bz3I3Uep7kfala+Tm34H0BfTfoD09/874QO9hscuQ6IfCpVofXftzjvblotiBXfd3rDweNX45L84aNMlw==",
"path": "microsoft.identitymodel.jsonwebtokens/6.22.0",
"hashPath": "microsoft.identitymodel.jsonwebtokens.6.22.0.nupkg.sha512"
},
"Microsoft.IdentityModel.Logging/6.22.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-v+BPO40iUEuAOmajdhL6tf2oSeCM5mGdHuuDJI0jr0GpTu3uv+UXh0lEy3DoKMZ52xk3RxDsLfMyzTdt7EC09A==",
"path": "microsoft.identitymodel.logging/6.22.0",
"hashPath": "microsoft.identitymodel.logging.6.22.0.nupkg.sha512"
},
"Microsoft.IdentityModel.Protocols/6.10.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-DFyXD0xylP+DknCT3hzJ7q/Q5qRNu0hO/gCU90O0ATdR0twZmlcuY9RNYaaDofXKVbzcShYNCFCGle2G/o8mkg==",
"path": "microsoft.identitymodel.protocols/6.10.0",
"hashPath": "microsoft.identitymodel.protocols.6.10.0.nupkg.sha512"
},
"Microsoft.IdentityModel.Protocols.OpenIdConnect/6.10.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-LVvMXAWPbPeEWTylDrxunlHH2wFyE4Mv0L4gZrJHC4HTESbWHquKZb/y/S8jgiQEDycOP0PDQvbG4RR/tr2TVQ==",
"path": "microsoft.identitymodel.protocols.openidconnect/6.10.0",
"hashPath": "microsoft.identitymodel.protocols.openidconnect.6.10.0.nupkg.sha512"
},
"Microsoft.IdentityModel.Tokens/6.22.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-5EXMewUGlrYr18XvtRgvo/Rx+sBp4PcEC1iM+n35Y2VHkXaOKM9v0+ktd8qZp4SSqF5WpMHnM8YMkFsLXJKJ8w==",
"path": "microsoft.identitymodel.tokens/6.22.0",
"hashPath": "microsoft.identitymodel.tokens.6.22.0.nupkg.sha512"
},
"Microsoft.NETCore.Platforms/3.1.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-z7aeg8oHln2CuNulfhiLYxCVMPEwBl3rzicjvIX+4sUuCwvXw5oXQEtbiU2c0z4qYL5L3Kmx0mMA/+t/SbY67w==",
"path": "microsoft.netcore.platforms/3.1.0",
"hashPath": "microsoft.netcore.platforms.3.1.0.nupkg.sha512"
},
"Microsoft.OpenApi/1.2.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==",
"path": "microsoft.openapi/1.2.3",
"hashPath": "microsoft.openapi.1.2.3.nupkg.sha512"
},
"Microsoft.Win32.Registry/4.7.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-KSrRMb5vNi0CWSGG1++id2ZOs/1QhRqROt+qgbEAdQuGjGrFcl4AOl4/exGPUYz2wUnU42nvJqon1T3U0kPXLA==",
"path": "microsoft.win32.registry/4.7.0",
"hashPath": "microsoft.win32.registry.4.7.0.nupkg.sha512"
},
"runtime.native.System.Data.SqlClient.sni/4.7.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-9kyFSIdN3T0qjDQ2R0HRXYIhS3l5psBzQi6qqhdLz+SzFyEy4sVxNOke+yyYv8Cu8rPER12c3RDjLT8wF3WBYQ==",
"path": "runtime.native.system.data.sqlclient.sni/4.7.0",
"hashPath": "runtime.native.system.data.sqlclient.sni.4.7.0.nupkg.sha512"
},
"runtime.win-arm64.runtime.native.System.Data.SqlClient.sni/4.4.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-LbrynESTp3bm5O/+jGL8v0Qg5SJlTV08lpIpFesXjF6uGNMWqFnUQbYBJwZTeua6E/Y7FIM1C54Ey1btLWupdg==",
"path": "runtime.win-arm64.runtime.native.system.data.sqlclient.sni/4.4.0",
"hashPath": "runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512"
},
"runtime.win-x64.runtime.native.System.Data.SqlClient.sni/4.4.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-38ugOfkYJqJoX9g6EYRlZB5U2ZJH51UP8ptxZgdpS07FgOEToV+lS11ouNK2PM12Pr6X/PpT5jK82G3DwH/SxQ==",
"path": "runtime.win-x64.runtime.native.system.data.sqlclient.sni/4.4.0",
"hashPath": "runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512"
},
"runtime.win-x86.runtime.native.System.Data.SqlClient.sni/4.4.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-YhEdSQUsTx+C8m8Bw7ar5/VesXvCFMItyZF7G1AUY+OM0VPZUOeAVpJ4Wl6fydBGUYZxojTDR3I6Bj/+BPkJNA==",
"path": "runtime.win-x86.runtime.native.system.data.sqlclient.sni/4.4.0",
"hashPath": "runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512"
},
"Swashbuckle.AspNetCore/6.2.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-cnzQDn0Le+hInsw2SYwlOhOCPXpYi/szcvnyqZJ12v+QyrLBwAmWXBg6RIyHB18s/mLeywC+Rg2O9ndz0IUNYQ==",
"path": "swashbuckle.aspnetcore/6.2.3",
"hashPath": "swashbuckle.aspnetcore.6.2.3.nupkg.sha512"
},
"Swashbuckle.AspNetCore.Swagger/6.2.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-qOF7j1sL0bWm8g/qqHVPCvkO3JlVvUIB8WfC98kSh6BT5y5DAnBNctfac7XR5EZf+eD7/WasvANncTqwZYfmWQ==",
"path": "swashbuckle.aspnetcore.swagger/6.2.3",
"hashPath": "swashbuckle.aspnetcore.swagger.6.2.3.nupkg.sha512"
},
"Swashbuckle.AspNetCore.SwaggerGen/6.2.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-+Xq7WdMCCfcXlnbLJVFNgY8ITdP2TRYIlpbt6IKzDw5FwFxdi9lBfNDtcT+/wkKwX70iBBFmXldnnd02/VO72A==",
"path": "swashbuckle.aspnetcore.swaggergen/6.2.3",
"hashPath": "swashbuckle.aspnetcore.swaggergen.6.2.3.nupkg.sha512"
},
"Swashbuckle.AspNetCore.SwaggerUI/6.2.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-bCRI87uKJVb4G+KURWm8LQrL64St04dEFZcF6gIM67Zc0Sr/N47EO83ybLMYOvfNdO1DCv8xwPcrz9J/VEhQ5g==",
"path": "swashbuckle.aspnetcore.swaggerui/6.2.3",
"hashPath": "swashbuckle.aspnetcore.swaggerui.6.2.3.nupkg.sha512"
},
"System.Data.SqlClient/4.8.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-yERfVLXAY0QbylAgaGLByYN0hFxX28aeEQ0hUgJO+Ntn1AfmWl5HHUoYJA0Yl9HhIUUJHVaS/Sw/RLZr5aaC+A==",
"path": "system.data.sqlclient/4.8.3",
"hashPath": "system.data.sqlclient.4.8.3.nupkg.sha512"
},
"System.IdentityModel.Tokens.Jwt/6.22.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-jxUfcELhBZLq5r4lzlqqgTxwkkxRsGIMatcCMc6bXNQ8879neaIeKH6/8yzyNOV5rme/0xysWvilt1/JlfoVrw==",
"path": "system.identitymodel.tokens.jwt/6.22.0",
"hashPath": "system.identitymodel.tokens.jwt.6.22.0.nupkg.sha512"
},
"System.Security.AccessControl/4.7.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-JECvTt5aFF3WT3gHpfofL2MNNP6v84sxtXxpqhLBCcDRzqsPBmHhQ6shv4DwwN2tRlzsUxtb3G9M3763rbXKDg==",
"path": "system.security.accesscontrol/4.7.0",
"hashPath": "system.security.accesscontrol.4.7.0.nupkg.sha512"
},
"System.Security.Cryptography.Cng/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-WG3r7EyjUe9CMPFSs6bty5doUqT+q9pbI80hlNzo2SkPkZ4VTuZkGWjpp77JB8+uaL4DFPRdBsAY+DX3dBK92A==",
"path": "system.security.cryptography.cng/4.5.0",
"hashPath": "system.security.cryptography.cng.4.5.0.nupkg.sha512"
},
"System.Security.Principal.Windows/4.7.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-ojD0PX0XhneCsUbAZVKdb7h/70vyYMDYs85lwEI+LngEONe/17A0cFaRFqZU+sOEidcVswYWikYOQ9PPfjlbtQ==",
"path": "system.security.principal.windows/4.7.0",
"hashPath": "system.security.principal.windows.4.7.0.nupkg.sha512"
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,19 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.AspNetCore.App",
"version": "6.0.0"
}
],
"configProperties": {
"System.GC.Server": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

Binary file not shown.

@ -0,0 +1,17 @@
{
/* "ConnectionStrings": {
"SqlConnection": "server=127.0.0.1,14033; database=GEMCO; User Id=sa;Password=toor1234.;Encrypt=False;"
}, */
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"pathArchivoElectronico": "C:\\downs\\ArchivoElectronicoSIR\\www.gemcousa.com\\SIR-GEMCO\\DOCS-SIR\\",
"pathTemp": "C:\\downs\\temp\\",
"pathFotosBodega": "c:\\data\\Bodega\\Fotos\\",
"pathZipCorresponsales": "C:\\data\\",
"CorresponsalesFilePath": "C:\\data\\",
"Allfiles": "C:\\data\\"
}

@ -0,0 +1,31 @@
{
"ConnectionStrings": {
"SqlConnection": "server=.; database=AOL; Integrated Security=true;TrustServerCertificate=True;"
// "SqlConnection": "server=127.0.0.1,14033; database=GEMCO; User Id=sa; Password=toor1234.; TrustServerCertificate=True;"
},
"DefaultUser": {
"Password": "Bienvenido123!"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"Jwt": {
"Key": "GFE1j5KLolZHDK9iKw5xK17Rz4ty7BlbXgnjPL6dNwVCCNQWU8uRGVyZmAZPWZMs4XX0phFMS849p25Lrwsn31Bi4J7GT2HQ9xeWlJLarJPDyoRZZvChpovwgrquQ9Pd",
"Issuer": "JWTAuthenticationServer",
"Audience": "JWTServicePostmanClient",
"Subject": "JWTServiceAccessToken",
"ExpirationHours": 4
},
"EmailServer": "146.20.161.11",
"EmailPort": 587,
"pathArchivoElectronico": "D:\\data\\ArchivoElectronicoSIR\\www.gemcousa.com\\SIR-GEMCO\\DOCS-SIR\\",
"pathTemp": "D:\\data\\temp\\",
"pathFotosBodega": "D:\\data\\Bodega\\Fotos\\",
"pathZipCorresponsales": "D:\\data\\Corresponsales\\Zips\\",
"CorresponsalesFilePath": "D:\\data\\Corresponsales\\",
"AllFiles": "D:\\data\\"
}

@ -0,0 +1,95 @@
{
"format": 1,
"restore": {
"C:\\projects\\staging\\AOL\\AOLBackend\\AOLBackend.csproj": {}
},
"projects": {
"C:\\projects\\staging\\AOL\\AOLBackend\\AOLBackend.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\projects\\staging\\AOL\\AOLBackend\\AOLBackend.csproj",
"projectName": "AOLBackend",
"projectPath": "C:\\projects\\staging\\AOL\\AOLBackend\\AOLBackend.csproj",
"packagesPath": "C:\\Users\\Alfonso Garcia\\.nuget\\packages\\",
"outputPath": "C:\\projects\\staging\\AOL\\AOLBackend\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\Alfonso Garcia\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"dependencies": {
"Dapper": {
"target": "Package",
"version": "[2.0.123, )"
},
"Microsoft.AspNetCore.Authentication.JwtBearer": {
"target": "Package",
"version": "[6.0.8, )"
},
"Microsoft.IdentityModel.JsonWebTokens": {
"target": "Package",
"version": "[6.22.0, )"
},
"Microsoft.IdentityModel.Tokens": {
"target": "Package",
"version": "[6.22.0, )"
},
"Swashbuckle.AspNetCore": {
"target": "Package",
"version": "[6.2.3, )"
},
"System.Data.SqlClient": {
"target": "Package",
"version": "[4.8.3, )"
},
"System.IdentityModel.Tokens.Jwt": {
"target": "Package",
"version": "[6.22.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.300\\RuntimeIdentifierGraph.json"
}
}
}
}
}

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Alfonso Garcia\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.2.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Alfonso Garcia\.nuget\packages\" />
</ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props')" />
<Import Project="$(NuGetPackageRoot)swashbuckle.aspnetcore\6.2.3\build\Swashbuckle.AspNetCore.props" Condition="Exists('$(NuGetPackageRoot)swashbuckle.aspnetcore\6.2.3\build\Swashbuckle.AspNetCore.props')" />
</ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgMicrosoft_Extensions_ApiDescription_Server Condition=" '$(PkgMicrosoft_Extensions_ApiDescription_Server)' == '' ">C:\Users\Alfonso Garcia\.nuget\packages\microsoft.extensions.apidescription.server\3.0.0</PkgMicrosoft_Extensions_ApiDescription_Server>
</PropertyGroup>
</Project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.targets')" />
</ImportGroup>
</Project>

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AOLBackend")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("AOLBackend")]
[assembly: System.Reflection.AssemblyTitleAttribute("AOLBackend")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

@ -0,0 +1 @@
a9a99b103086d055786177b9ebc35d316cbc7dc6

@ -0,0 +1,16 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb = true
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = AOLBackend
build_property.RootNamespace = AOLBackend
build_property.ProjectDir = C:\projects\staging\AOL\AOLBackend\
build_property.RazorLangVersion = 6.0
build_property.SupportLocalizedComponentNames =
build_property.GenerateRazorMetadataSourceChecksumAttributes =
build_property.MSBuildProjectDirectory = C:\projects\staging\AOL\AOLBackend
build_property._RazorSourceGeneratorDebug =

@ -0,0 +1,17 @@
// <auto-generated/>
global using global::Microsoft.AspNetCore.Builder;
global using global::Microsoft.AspNetCore.Hosting;
global using global::Microsoft.AspNetCore.Http;
global using global::Microsoft.AspNetCore.Routing;
global using global::Microsoft.Extensions.Configuration;
global using global::Microsoft.Extensions.DependencyInjection;
global using global::Microsoft.Extensions.Hosting;
global using global::Microsoft.Extensions.Logging;
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Net.Http.Json;
global using global::System.Threading;
global using global::System.Threading.Tasks;

@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Swashbuckle.AspNetCore.SwaggerGen")]
// Generated by the MSBuild WriteCodeFragment class.

@ -0,0 +1 @@
dc389e70f51037c3ad713438898afdabc9e24613

@ -0,0 +1,42 @@
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\AOLBackend.csproj.AssemblyReference.cache
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\AOLBackend.GeneratedMSBuildEditorConfig.editorconfig
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\AOLBackend.AssemblyInfoInputs.cache
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\AOLBackend.AssemblyInfo.cs
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\AOLBackend.csproj.CoreCompileInputs.cache
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\AOLBackend.MvcApplicationPartsAssemblyInfo.cs
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\AOLBackend.MvcApplicationPartsAssemblyInfo.cache
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\appsettings.Development.json
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\appsettings.json
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\AOLBackend.exe
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\AOLBackend.deps.json
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\AOLBackend.runtimeconfig.json
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\AOLBackend.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\AOLBackend.pdb
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\Dapper.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\Microsoft.AspNetCore.Authentication.JwtBearer.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\Microsoft.IdentityModel.Abstractions.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\Microsoft.IdentityModel.JsonWebTokens.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\Microsoft.IdentityModel.Logging.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\Microsoft.IdentityModel.Protocols.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\Microsoft.IdentityModel.Tokens.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\Microsoft.OpenApi.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\Swashbuckle.AspNetCore.Swagger.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\Swashbuckle.AspNetCore.SwaggerGen.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\Swashbuckle.AspNetCore.SwaggerUI.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\System.Data.SqlClient.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\System.IdentityModel.Tokens.Jwt.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\runtimes\win-arm64\native\sni.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\runtimes\win-x64\native\sni.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\runtimes\win-x86\native\sni.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\runtimes\unix\lib\netcoreapp2.1\System.Data.SqlClient.dll
C:\projects\staging\AOL\AOLBackend\bin\Debug\net6.0\runtimes\win\lib\netcoreapp2.1\System.Data.SqlClient.dll
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\staticwebassets.build.json
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\staticwebassets.development.json
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\scopedcss\bundle\AOLBackend.styles.css
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\AOLBackend.csproj.CopyComplete
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\AOLBackend.dll
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\refint\AOLBackend.dll
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\AOLBackend.pdb
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\AOLBackend.genruntimeconfig.cache
C:\projects\staging\AOL\AOLBackend\obj\Debug\net6.0\ref\AOLBackend.dll

Binary file not shown.

@ -0,0 +1 @@
c5089d8d918bf6720aa1bc428c17fe55ba3a8b75

Binary file not shown.

Binary file not shown.

@ -0,0 +1,11 @@
{
"Version": 1,
"Hash": "vGvgS57N0FaNS3KWSvGwlo92w5KCz2L1MXZaCuWQgew=",
"Source": "AOLBackend",
"BasePath": "_content/AOLBackend",
"Mode": "Default",
"ManifestType": "Build",
"ReferencedProjectsConfiguration": [],
"DiscoveryPatterns": [],
"Assets": []
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,35 @@
{
"version": 2,
"dgSpecHash": "nm8OLJxSafMwU2Ojq/cKBKa9qnSLGKD7My1DJLET2NWTiCIa/WOyDOf7aTvofSRhVAPbJB8h1mP+1YLdKgkSQQ==",
"success": true,
"projectFilePath": "C:\\projects\\staging\\AOL\\AOLBackend\\AOLBackend.csproj",
"expectedPackageFiles": [
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\dapper\\2.0.123\\dapper.2.0.123.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\microsoft.aspnetcore.authentication.jwtbearer\\6.0.8\\microsoft.aspnetcore.authentication.jwtbearer.6.0.8.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\microsoft.csharp\\4.5.0\\microsoft.csharp.4.5.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\microsoft.extensions.apidescription.server\\3.0.0\\microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\microsoft.identitymodel.abstractions\\6.22.0\\microsoft.identitymodel.abstractions.6.22.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\microsoft.identitymodel.jsonwebtokens\\6.22.0\\microsoft.identitymodel.jsonwebtokens.6.22.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\microsoft.identitymodel.logging\\6.22.0\\microsoft.identitymodel.logging.6.22.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\microsoft.identitymodel.protocols\\6.10.0\\microsoft.identitymodel.protocols.6.10.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\microsoft.identitymodel.protocols.openidconnect\\6.10.0\\microsoft.identitymodel.protocols.openidconnect.6.10.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\microsoft.identitymodel.tokens\\6.22.0\\microsoft.identitymodel.tokens.6.22.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\microsoft.netcore.platforms\\3.1.0\\microsoft.netcore.platforms.3.1.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\microsoft.openapi\\1.2.3\\microsoft.openapi.1.2.3.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\microsoft.win32.registry\\4.7.0\\microsoft.win32.registry.4.7.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\runtime.native.system.data.sqlclient.sni\\4.7.0\\runtime.native.system.data.sqlclient.sni.4.7.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\runtime.win-arm64.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\runtime.win-x64.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\runtime.win-x86.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\swashbuckle.aspnetcore\\6.2.3\\swashbuckle.aspnetcore.6.2.3.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\6.2.3\\swashbuckle.aspnetcore.swagger.6.2.3.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\6.2.3\\swashbuckle.aspnetcore.swaggergen.6.2.3.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\6.2.3\\swashbuckle.aspnetcore.swaggerui.6.2.3.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\system.data.sqlclient\\4.8.3\\system.data.sqlclient.4.8.3.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\system.identitymodel.tokens.jwt\\6.22.0\\system.identitymodel.tokens.jwt.6.22.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\system.security.accesscontrol\\4.7.0\\system.security.accesscontrol.4.7.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\system.security.cryptography.cng\\4.5.0\\system.security.cryptography.cng.4.5.0.nupkg.sha512",
"C:\\Users\\Alfonso Garcia\\.nuget\\packages\\system.security.principal.windows\\4.7.0\\system.security.principal.windows.4.7.0.nupkg.sha512"
],
"logs": []
}

@ -0,0 +1,19 @@
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
Loading…
Cancel
Save