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

Closed
opened 2025-08-09 17:19:23 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @wenkangjing on 11/21/2016

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.

*Originally created by @wenkangjing on 11/21/2016* 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1241
No description provided.