How you can organize the security section of web.config file?

Tripati_tutu
Posted by Tripati_tutu under ASP.NET category on | Points: 40 | Views : 2770
To organize the security section of web.config file, you need to follow the below code, i.e.
<authentication mode = " [Windows/Forms/Passport/None] ">
<forms name = " [name] " loginUrl = " [url] " >
<credentials passwordFormat = " [Clear, SHA1, MD5] ">
<user name = " [username] " password = " [password] " />
</ credentials>
</forms>
<passport redirectUrl = "internal" />
</ authentication>

<authorization>
<allow users = " [mention list of users separated by comma] "
roles = " [mention list of roles separated by comma] " />
<deny users = " [mention list of users separated by comma] "
roles = " [mention list of roles separated by comma] " />
</ authorization>

<identity impersonate = " [true/false] " />

Comments or Responses

Login to post response