Summary

Completed

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

Learn more

Channel 9 video series: