• Stars
    star
    485
  • Rank 90,698 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ASP.NET Core Identity Series

ASP.NET Core Identity Series

The most complete guide for ASP.NET Core Identity

ASP.NET Core Identity Series

License Build status

Part 1 - Getting Started

  • 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

Part 2 - Integrate Entity Framework

  • 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

Part 3 - Deep Dive in authorization

  • 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

Part 4 - OAuth 2.0, OpenID Connect & IdentityServer

  • Explain how OAuth 2.0 works (terminology, grant types, tokens)
  • Explain how OpenID Connect works (terminology, tokens, flows)
  • Learn how to use IdentityServer for integrating OAuth 2.0 and OpenID Connect
  • Associated repository branch: identity-server

Part 5 - External provider authentication & registration strategy

Part 6 - Two-Factor Authentication

  • Implement all Two Factor Authentication related tasks:
    • Enable/Disable 2FA
    • Configure authenticator app (QR Code included)
    • Generate/Reset recovery tokens
    • Reset authenticator app
  • Explore the 2FA code and database schema
  • Enhance the security level of 2FA by overriding the default implementation
    • Encrypt authenticator key
    • Encrypt recovery tokens
  • Associated repository branch: two-factor-authentication

To be continued..

Installation instructions

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

  1. Basic project setup:
    • cd ./AspNetCoreIdentity where the package.json file exist
    • npm install
    • dotnet restore
    • dotnet build
    • dotnet run
  2. Create the AspNetCoreIdentityDb database (skip if you want to run with In memory DB)
    • cd ./AspNetCoreIdentity where the AspNetCoreIdentity.csproj exist
    • Add-Migration initial_migration or dotnet ef migrations add initial_migration
    • Update-Database or dotnet ef database update
  3. Create the IdentityServerDb database (skip if you want to run with In memory DB)

In case you don't want to use a real SQL Server Database when running the AspNetCoreIdentity project, simply set InMemoryProvider: true in the appsettings.json. This option will use in memory database

In case you don't want to use a real SQL Server Database when running the IdentityServer project simply set UseInMemoryStores: true in the relative appsettings.json This option will use in memory database

Follow chsakell's Blog

Facebook Twitter
Microsoft Web Application Development
facebook twitter-small

Show me your support! ❀️ πŸ‘

License

Code released under the MIT license.

More Repositories

1

mvcarchitecture

ASP.NET MVC Solution Architecture – Best Practices
C#
491
star
2

aspnet5-angular2-typescript

Cross-platform Single Page Applications with ASP.NET Core, Angular 4 & TypeScript
C#
348
star
3

spa-webapi-angularjs

Building Single Page Applications using Web API and AngularJS
C#
254
star
4

dotnetcore-entityframework-api

Building REST APIs using ASP.NET Core and Entity Framework Core
C#
222
star
5

angular2-features

Angular CRUD ops, Modals, Animations, Pagination, DateTimePicker, Directives and much more..
TypeScript
175
star
6

aspnet-core-signalr-angular

Real-time applications using ASP.NET Core, SignalR & Angular
C#
143
star
7

ionic2-angular2-firebase

Building hybrid mobile apps using Ionic 2 and Firebase
TypeScript
93
star
8

webapiunittesting

ASP.NET Web API Unit Testing
C#
35
star
9

mongodb-csharp

MongoDB for C# developers
C#
30
star
10

wcfdependencyinjection

Dependency injection in WCF
C#
24
star
11

planet-scale-azure

Globally-distributed applications with Microsoft Azure - Free e-book
C#
23
star
12

multi-client-api

Building multi-client APIs in ASP.NET
C#
19
star
13

rxjs-in-angular

ReactiveX operators in Angular
TypeScript
13
star
14

aspnet-core-smartresult

ASP.NET Core MVC Filter that transforms result types based on device type
C#
12
star
15

webapi-fileupload

Web API File Uploading (Desktop and Web client)
C#
11
star
16

Swashbuckle.AspNetCore.SwaggerGen.ConventionalRouting

Swagger with Conventional Routing support
C#
10
star
17

gadgetstore

AngularJS feat. Web API
C#
9
star
18

odatawebapi

ASP.NET Web API feat. OData
JavaScript
9
star
19

browsedotnet

BrowseDotNET: Manage your .NET Solutions and code snippets
C#
8
star
20

typescript-ng-bower-gulp

TypeScript, AngularJS, Gulp and Bower in Visual Studio 2015
C#
8
star
21

online-store

C#
7
star
22

azure-functions-proxies

Azure Functions Proxies in Action
C#
7
star
23

documentdb-dotnet-core

JavaScript
7
star
24

azure-github-ci-cd

Continuous Integration & Delivery with Microsoft Azure & GitHub – Best Practices
C#
6
star
25

serverless-azure-functions

Building serverless apps with Azure Functions
HTML
5
star
26

angular2-tour-of-heroes

The TOUR OF HEROES tutorial's code completed
TypeScript
5
star
27

wcfauthheader

Secure WCF Services with custom encrypted tokens
C#
4
star
28

webapiangularjssecurity

AngularJS feat. Web API – Security
C#
4
star
29

webapicustomvalidation

Web API powerful Custom Model Validation with FluentValidation
C#
3
star
30

mvcsessionperfomance

ASP.NET MVC Session state Performance Issue
C#
3
star
31

sendingemailsapp

Sending Emails in ASP.NET: Do it right
C#
3
star
32

statemanagement

State Management in ASP.NET (ViewState, SessionState & ApplicationState)
C#
3
star
33

asynchronousprogramming

Asynchronous programming using Tasks
C#
2
star
34

adonetbatchqueries

Batch queries, Multiple Result Sets and Parameterized Queries in ADO.NET
C#
2
star
35

ssr-spa-navigation

Instant page rendering and seamless navigation for SPAs
C#
2
star
36

aspnetcaching

Caching SQL Server data in ASP.NET
C#
2
star
37

mapcrudstoredprocedures

Map CRUD Stored Procedures to Entities with Entity Framework
C#
2
star
38

weather-app

JavaScript
2
star
39

dotnetcoreangular-to-azure

Azure App Service CI/CD using AppVeyor
TypeScript
2
star
40

usercontrol

ASP.NET Web Form User Controls – How to use them
C#
1
star
41

sqlcommands

SqlCommands: What to choose between SqlDataAdapter, ExecuteScalar and ExecuteNonQuery
C#
1
star
42

wcfproxies

WCF Proxies - From beginner to expert
C#
1
star
43

rxjs-samples

RxJS samples
TypeScript
1
star
44

webmail-server

C#
1
star
45

maui-trackizer

.NET MAUI UI implementation for a subscription tracking app
C#
1
star
46

extnetdataview

Ajax enabled lists using the Ext.NET component framework
C#
1
star
47

livesearchwithwebapi

Related entities and live search with Web API and Entity Framework
C#
1
star
48

wcf-dot-net-core

WCF Proxies in .NET Core
C#
1
star
49

aspneturlrouting

URL Rooting in ASP.NET (Web Forms)
C#
1
star
50

azure-service-fabric-getting-started

Azure Service Fabric - Getting Started
C#
1
star
51

webapiroutingconstraints

Web API Custom Routing Constraints
C#
1
star