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

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

@joopscheer

Description

@joopscheer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions