Hi @Zang-Ho Bae ,
It can work in Blazor servert app. Configure it in startup.cs like this:
services.AddRazorPages(options =>
// authenticated user only
options.Conventions.AuthorizeAreaFolder("Admin", "/")
// user with certain roles only
//options.Conventions.AuthorizeAreaFolder("Admin", "/", "AdminRoles")
);
Best Regards,
Jiadong Meng
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.