How to allow Impersonation in ASP.NET Web Application?

By Santhosh N

This explain how to allow Impersonation in ASP.NET Web Application.

Whenever, you need to allow your ASP.NET Web Application to be accessed by users using Impersonation account, you could do that using the foloowing configuration in Web.config file.

<
configuration>
  <system.web>
    <identity impersonate="true"/>
  </system.web>
</configuration>

You could even configure a single user identity to be allowed to impersonated as below:

<configuration>
  <system.web>
    
<identity impersonate="true"
userName="
EggHeadCafe\Robbe"
password="********" />
  </system.web>
</configuration>

Related FAQs

This explain how to read the identity of the impersonated user in ASP.NET programatically.
This explain the page life cycle event that is best suited to set the Master Page for the webpage in ASP.NET programatically at runtime.
This explains the equivalent of global.asa of classic ASP in Asp.Net
This explains about the co-existence of ASP and ASP.Net websites in the same server
This explains the equivalent of ObjectRecordSet.MoveNext ofclassic ASP in Asp.Net
How to allow Impersonation in ASP.NET Web Application?  (997 Views)