Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Windows Authentication: fail to get User.Identity.Name in controller (always null) #455

@wenkangjing

Description

@wenkangjing

Project was generated by yo aspnetcore-spa - React With Redux, with following settings

launchSettings.json

    "windowsAuthentication": true,
    "anonymousAuthentication": true,

Symptom
User.Identity.Name; is always null in any controllers

Walk around
Set anonymousAuthentication to false can walk around it, but just curious why.

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