Challenge: Adding a Restricted Razor Page
Explore how to secure individual Razor Pages by enforcing authentication and applying authorization policies. Learn to allow anonymous access to public pages while restricting admin pages to users with specific claims using efficient code practices in an ASP.NET Core environment.
We'll cover the following...
We'll cover the following...
Overview
In this challenge, you will need to apply specific authorization requirements on individual pages in a Razor Pages app.
Requirements
In the playground at the end of this lesson, you have the following two applications: