In ASP we used to create protected folder by web.config in the folder:
<?xml version="1.0"?>
<configuration>
<system.web>
<authorization >
<deny users="?"/>
</authorization>
</system.web>
</configuration>
Now, how i'm doing this in MVC where the page is controller and views?
The porpose is to enforce authorization not only by code since we are just human beings and tend to forget.
Is it enough to set a "autorization" attribute to the action?
assumptions:
using Identity framwork