Skip to content

Commit 52eb61c

Browse files
Update aspnetcore/migration/fx-to-core/areas/claimsprincipal-current.md
Co-authored-by: Wade Pickett <[email protected]>
1 parent a8c9b5d commit 52eb61c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/migration/fx-to-core/areas/claimsprincipal-current.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The current ClaimsPrincipal is a fundamental component of authenticated web appl
1313

1414
## Why static ClaimsPrincipal migration is complex
1515

16-
ASP.NET Framework and ASP.NET Core have fundamentally different approaches to accessing the current user:
16+
ASP.NET Framework and ASP.NET Core take fundamentally different approaches to how the current user is accessed:
1717

1818
* **ASP.NET Framework** uses static properties like <xref:System.Security.Claims.ClaimsPrincipal.Current?displayProperty=nameWithType> and <xref:System.Threading.Thread.CurrentPrincipal?displayProperty=nameWithType> with automatic context management. These properties are interchangeable and both provide access to the current user's identity.
1919
* **ASP.NET Core** stores the current user in <xref:Microsoft.AspNetCore.Http.HttpContext.User?displayProperty=nameWithType> and avoids static state.

0 commit comments

Comments
 (0)