Impersonation | |
By default, all ASP.NET code is executed using a fixed machine-specific account. To execute code using a specific identity we can use the built-in impersonation capabilities of ASP.NET. If you enable impersonation, Asp.Net application runs in the context of the identity whose access token IIS passes to ASP.NET. That token can be either an authenticated user token, such as token for a logged-in windows user, or token that IIS provides for anonymous users (IUSER_MACHINENAME identity). | |
| |
IUSER_MACHINENAME | |
If anonymous access is disabled in IIS, the request is made using the account of the authenticated user. | |
We can impersonate a user on a thread in ASP.NET, you can use the following methods.
| |
Impersonation |
Interview Questions on ASP.NET Impersonation
Interview Questions on ASP.NET Impersonation
Posted by
Ramu