Skip to content
This repository has been 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

Closed
wenkangjing opened this issue Nov 21, 2016 · 1 comment

Comments

@wenkangjing
Copy link

wenkangjing commented Nov 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.

@SteveSandersonMS
Copy link
Member

Would you mind posting this at https://github.com/aspnet/Identity/issues, since it's a general question about identity in ASP.NET Core rather than being specific to the SPA templates? Thanks!

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

2 participants