I am creating a website with a mixture of publicly accessible pages and for members only. The login system is working as it is.
However, I would like to open a private, invited preview and temporarily require visitors to register for all activities except the welcome page.
I currently have attributes [Authorize]for certain action methods. I could add additional attributes to other methods of actions, but this is a bit hacked and makes it difficult to remove them later, when I want to return to more open content.
So, how can I effectively add the authorization requirement on the site? Recall that I want the only route to /Home/Indexremain open, so that the people I invited can read some information before activating their invitations.
source
share