From 8d60b3bb0b5a3427fb386771d6fa8c00f61058f4 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Mon, 14 Nov 2022 19:17:53 -0600 Subject: AƱadida configuraciĆ³n de Identity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Program.cs') diff --git a/Program.cs b/Program.cs index 48863a6..19b5970 100644 --- a/Program.cs +++ b/Program.cs @@ -1,11 +1,20 @@ +using Microsoft.AspNetCore.Identity; +using Microsoft.EntityFrameworkCore; +using IdentityAPI.Models; + var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(); +builder.Services.AddDbContext(o => o.UseNpgsql(builder.Configuration.GetConnectionString("ApplicationDbContext"))); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); +// Identity configuration. +// builder.Services.Configure(options => { + +// }) var app = builder.Build(); -- cgit v1.2.3