Updating ClaimsPrincipal.Current to default back to Thread.CurrentPrincipal, as was...
authorTanner Gooding <tagoo@outlook.com>
Thu, 13 Aug 2020 13:35:32 +0000 (06:35 -0700)
committerGitHub <noreply@github.com>
Thu, 13 Aug 2020 13:35:32 +0000 (08:35 -0500)
commit6e89ae86dedf18a7d61c0db271c9de3e9005bfa1
tree64dd855f2d8d9c022f14b056555995a178e8edc9
parentd2c0ed643eef5189d5d9373a7973b6242128a72e
Updating ClaimsPrincipal.Current to default back to Thread.CurrentPrincipal, as was done on .NET Framework (#40623)

* Updating ClaimsPrincipal.Current to default back to Thread.CurrentPrincipal, as was done on .NET Framework

* Add test that ClaimsPrincipal.Current falls back to Thread.CurrentPrincipal to match .NET Framework.

Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
src/libraries/System.Security.Claims/src/System.Security.Claims.csproj
src/libraries/System.Security.Claims/src/System/Security/Claims/ClaimsPrincipal.cs
src/libraries/System.Security.Claims/tests/ClaimsPrincipalTests.cs
src/libraries/System.Security.Claims/tests/System.Security.Claims.Tests.csproj