« first day (4536 days earlier)      last day (414 days later) » 

mr5
7:43 AM
@Alex start with any identity providers that implements OIDC
 
 
14 hours later…
9:36 PM
@mr5 Thanks. Got it working
Couple of things: added this to the server proj's Program.cs:
- Add this pkg to Server and Shared (where the entities are): Microsoft.AspNetCore.Identity.EntityFrameworkCore
- in the db context class, switch it to derive from IdentityDbContext
- ensure it has this so it pulls in the AspNet... entities:
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
  //....
  base.OnModelCreating(modelBuilder);
}
- in the server's Program.cs:
builder.Services.AddIdentity<IdentityUser, IdentityRole>()
	.AddDefaultTokenProviders()
	.AddEntityFrameworkStores<MyContext>()
	.AddSignInManager();
It now uses JWT + Identity to auth the user
 
 
2 hours later…
mr5
11:45 PM
Having been gone in C# world for 2 years and realized that integrating IdP in ASP is strange. Developers are usually defaulting to use Identity Server because it seems to be a builtin thing.
 

« first day (4536 days earlier)      last day (414 days later) »