Abid Khan

Abid Khan

  • NA
  • 245
  • 25.9k

Authentication and Authorisation

Feb 1 2015 9:21 PM
Hello, I have a web.config file in that authentication and authorization section i have defined roles and users, i would like to know from where web.config file get these values and perform comparison.
<authentication mode="Forms">
<forms loginUrl="Login.aspx">
</forms>
</authentication>
<location path="HRpages">
<system.web>
<authorization>
<allow roles="HR","Admin" />
<allow users="john”, “smith”, “Ahmed” />
<deny users="*" />
</authorization>
</system.web>
</location>

Answers (1)