Skip to content

Commit 0566560

Browse files
author
Simonx Xu
authored
Merge pull request #8148 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/SupportArticles-docs (branch main)
2 parents e3c469a + fcee46e commit 0566560

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

support/developer/webapps/aspnet/development/implement-impersonation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Impersonation in ASP.NET applications
33
description: This article introduces how to implement impersonation by modifying Web.config and running a particular section of code.
4-
ms.date: 03/26/2020
4+
ms.date: 02/05/2025
55
ms.custom: sap:General Development
66
ms.reviewer: jallen
77
ms.topic: how-to
@@ -39,10 +39,10 @@ To impersonate the Internet Information Services (IIS) authenticating user on ev
3939

4040
## Impersonate a specific user for all requests of an ASP.NET application
4141

42-
To impersonate a specific user for all the requests on all pages of an ASP.NET application, you can specify the `userName` and `password` attributes in the `<identity>` tag of the Web.config file for that application. For example:
42+
To impersonate a specific user for all the requests on all pages of an ASP.NET application, you can specify the `userName` and `password` attributes in the `<identity>` tag of the **Web.config** file for that application. For example:
4343

4444
```xml
45-
<identity impersonate="true" userName="accountname" password="password" />
45+
<identity impersonate="true" userName="<accountName>" password="<credentialPlaceholder>"/>
4646
```
4747

4848
> [!NOTE]

0 commit comments

Comments
 (0)