Authentication
Authentication copied to clipboard
Authentication examples for AspNetCore 3.1
Authentication
Creating functioning Authentication by example for AspNetCore. These are primarily for learning. They aren't quite ready for production but it should be great prototypes to help you get 90% of the way there.
I have tried to include the very sources I came across. Anything I used to help try and refresh my memory, or solve NetCore 3.x variations, or just best practices I wasn't aware of.
The projects were designed to be working locally (Kestrel), some issues will occur on specific projects I have made notes of.
AspNetCore3.x_IS4.1 (Newer Projects)
IS01_IdentityServer4.1_AspNetIdentity
Analyzing the new raw template and tweaking it as needed in line with the other older projects.
AspNetCore3.x_MVC (Still useful but missing IS4.1 changes)
C01_CookieBasic
Project for working out a basic Cookie authentication with AspNetCore.
C02_CookieAuthPolicy
Project for using cookies, claims, and roles, to authenticate properly.
I01_BasicIdentity
Project for working out a basic Cookie authentication with AspNetCore, EntityFramework Core, and AspNetCore Identity.
I02_IdentityEmailConfirm
A continuation of I01_BasicIdentity but adding in Email functionality from AspNetCore Identity and MailKit.
I03_IdentityResetPassword
A continuation of I02_IdentityEmailConfirm, making structural changes to the code, adding ForgotPassword and ResetPassword functionality.
IS401_IdentityServerBasics
A new project to show how to start using IdentityServer4.
IS402_IdentityServerMvcClient
A continuation of IS401_IdentityServerBasics to show how to start using IdentityServer4 with OpenId (but stops at the login.)
IS403_IdentityServer_AspNetIdentity_SqlServer
A continuation of IS402_IdentityServerMvcClient to show how to setup Serilog, AspNetIdentity, and SqlServer with IdentityServer4.
IS404_IdentityServer_AspNetIdentity_CustomUser
A continuation of IS403_IdentityServer_AspNetIdentity_SqlServer with prettier logging, custom IdentityUser/IdentityRole, change primary key type, and more!
IS405_IdentityServer_AspNetIdentity_StoredProcedures
A continuation of IS404_IdentityServer_AspNetIdentity_CustomUser with replacing some EntityFramework with SqlServer stored procedures.
IS406_IdentityServer
A focus back on IdentityServer (with AspNetIdentity, SqlServer, and Serilog) authentication and authorization.
IS407_IdentityServerContinued
A continuation of IS406_IdentityServer continuing authentication and authorization.