Skip to content

No Access

The pages here intentionally require roles that don't exist to demonstrate what happens when a user doesn't have access.

Note that the links are also marked with an icon and their entries in the sidebar are marked as well.

No Access By Attribute
Uses an AuthorizeAttribute to restrict access
No Access By Convention
Uses a convention set up in the call to builder.Services.AddRazorPages() to restrict access
Requires Authentication
This page requires authentication, so it will be marked as you not having access until you log in