Giter Site home page Giter Site logo

chsakell / aspnet-core-identity Goto Github PK

View Code? Open in Web Editor NEW
492.0 29.0 127.0 2.4 MB

ASP.NET Core Identity Series

License: MIT License

TypeScript 1.81% CSS 0.40% HTML 2.53% JavaScript 89.55% C# 5.64% Less 0.07%
aspnetcoreidentity aspnet-core aspnet identityserver

aspnet-core-identity's Introduction

ASP.NET Core Identity Series

The most complete guide for ASP.NET Core Identity

ASP.NET Core Identity Series

License Build status

  • 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
  • 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
  • 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.

aspnet-core-identity's People

Contributors

chsakell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aspnet-core-identity's Issues

Where is the description?

I can't find any textual description.
In addition, what is the default login for AspNetCoreIdentity

Readme

I think you have an issue with a readme file in section Installation instruction
the package.json file resides inside the ClientApp folder.

Bug: When access "Account/Login" Return Status:401 Unauthorized

public class StreamingCategoryPolicyProvider : IAuthorizationPolicyProvider { // .... public Task<AuthorizationPolicy> GetFallbackPolicyAsync() => FallbackPolicyProvider.GetDefaultPolicyAsync(); }

Will cause all pages to become inaccessible

it shouold be

public class StreamingCategoryPolicyProvider : IAuthorizationPolicyProvider { // .... public Task<AuthorizationPolicy> GetFallbackPolicyAsync() => FallbackPolicyProvider.GetFallbackPolicyAsync(); }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.