You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the initialisation of ClaimsPrincipal.s_principalSelector should be just removed, and the type of ClaimsPrincipal.s_principalSelector and ClaimsPrincipal.ClaimsPrincipalSelector should be changed to nullable Func<ClaimsPrincipal>?.
runtime/src/libraries/System.Security.Claims/src/System/Security/Claims/ClaimsPrincipal.cs
Line 31 in 1303e42
Here it is basically self-assignment:
ClaimsPrincipalSelector
property read the same field it is assigned to. As resultClaimsPrincipalSelector
property ends up beingnull
: https://sharplab.io/#v2:C4LgTgrgdgNAJiA1AHwAIEYB0GCcAKDTAZQFMBjCMAS2AE9MBhAGwEMqBbAZ0dY84AVqUMlQAOLJjzZdBVYWImkm5YAHswAAiqcNUCEyYBKANxA=Looks like it should be
SelectClaimsPrincipal
(to create delegate from method) instead ofClaimsPrincipalSelector
.The text was updated successfully, but these errors were encountered: