Skip to content

bamsbale/aspnet-core-identity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASP.NET Core Identity Series

ASP.NET Core Identity Series

  • Introduction to ASP.NET Core Identity library
  • Describe ASP.NET Core Identity basic archirecture
  • Explain the role and relationship between Stores and Managers and how they function under the hood
  • Explain what Claims, ClaimsIdentity and ClaimsPrincipal entities are and how they are related
  • Step by step guide on how to install and start using the core packages
  • Associated repository branch: getting-started
  • Introduce Microsoft.Extensions.Identity.Stores and UserStoreBase store implementations
  • Plug and configure Entity Framework Core with ASP.NET Core Identity and minimum configuration
  • Explain Entity Framework different store implementations such as UserOnlyStore or UserStore
  • Step by step guide for applying migrations and creating Identity's SQL Schema
  • Discuss whether you should use ASP.NET Core Identity with Entity Framework
  • Associated repository branch: entity-framework-integration
  • Explain Claims-based authorization by example
  • Explain Role-based authorization by example
  • Step by step guide for creating custom Authorization Policy Provider
  • Explain how authorization works under the hood
  • Explain Imperative authorization by example
  • Associated repository branch: authorization

To be continued..

Installation instructions

The project is built with ASP.NET Core with Angular on the client side.

  1. Visual Studio 2017: Just open the solution and wait to install the npm packages before running
  2. Without Visual Studio:
    • cd ./AspNetCoreIdentity where the package.json file exist
    • npm install
    • dotnet restore
    • dotnet build
    • dotnet run
  3. Create the database (required for second part and later)
    • cd ./AspNetCoreIdentity where the AspNetCoreIdentity.csproj exist
    • dotnet ef migrations add initial_migration
    • dotnet ef database update

In case you don't want to use SQL Database simply set InMemoryProvider: true in the appsettings.json

Follow chsakell's Blog

Facebook Twitter
Microsoft Web Application Development
facebook twitter-small

License

Code released under the MIT license.

About

ASP.NET Core Identity Series

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 38.2%
  • HTML 22.9%
  • TypeScript 20.3%
  • CSS 10.7%
  • JavaScript 7.9%