stuntman icon indicating copy to clipboard operation
stuntman copied to clipboard

UserPicker doesn't set current user in UseSampleMvc.AspNetCore

Open joopscheer opened this issue 6 years ago • 0 comments

The sample doesn't set the current user. The user picker always displays the anonymous user as the selected/picked user.

After some investigation I identified the problem. The user picker is determines the current user based on the current principal identity name. In the sample the added users don't have a name. I fixed this in a local branch and would love to provide you with a PR.

Wouldn't it be better to add a claim for the name of the StuntmanUser within the constructor? The DefaultNameClaimType is name by default anyway.

joopscheer avatar Jan 09 '19 08:01 joopscheer