Summary
100 XP
In this module, you added Identity to an existing ASP.NET Core Razor Pages project. The default Identity UI components were customized to satisfy the business and technical requirements. An authorization policy was created to secure certain features of the app. Finally, the authorization policy was employed to restrict access so that only administrators could view and access certain functionality.
A completed sample can be found on the solution
branch. Note the following points:
- The connection string is preconfigured for the .devcontainer. If you run it locally, change the connection string to point to your LocalDB instance.
- Make sure you apply the migrations before running the app.
Learn more about ASP.NET Core Identity
- ASP.NET Core security topics
- Scaffold Identity in ASP.NET Core projects
- Identity model customization in ASP.NET Core
- Enable QR code generation for TOTP authenticator apps in ASP.NET Core
- Claims-based authorization in ASP.NET Core
Learn more
Channel 9 video series: