Thursday, 25 May 2017

How to assign role authentication to folder

This is actually not the full part. This is just a part to add in web.config file.

In order to assign "Admin" role the the folder "SuperAdmin" add the following under System.web tag

<System.web>
<location path="SuperAdmin">
    <system.web>
      <authorization>
        <allow roles="Admin"/>
        <deny users="*"/>
      </authorization>
    </system.web>
  </location>
  

No comments:

Post a Comment