I am trying to lock access to all the pages in selected Areas in my Razor Pages app. So far I have this sample structure
Areas
Account
- Index.chtml
Business
- Index.chtml
If I add
options.Conventions.AuthorizeFolder("/business", "/index");
to startup, it works on a per page basis, but I cant see any clear way to lock the entire Business folder. I've tried the folder based options mentioned here
but none seem to work. Is this even possible?