Skip to content
This repository has been archived by the owner on Mar 23, 2022. It is now read-only.

UserPicker doesn't set current user in UseSampleMvc.AspNetCore #179

Open
joopscheer opened this issue Jan 9, 2019 · 0 comments
Open

UserPicker doesn't set current user in UseSampleMvc.AspNetCore #179

joopscheer opened this issue Jan 9, 2019 · 0 comments

Comments

@joopscheer
Copy link

joopscheer commented Jan 9, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant