I want to do auto login to .net core API using windows authentication.
I have enabled windows authentication and rest all authentication is kept disabled. now I am trying to run the API. its prompt popup for enter the credentials for login.
I do not want any popup which asks users to enter login details. its should auto authenticate using the current login user. however, if I enter login details in that popup, still it's not getting authenticate, it keep asking me to enter the credentials.
Tried approach:
- In IIS, application pool's identity set custom account, (current login account which is administrator)
- Enable Anonymous authentication along with windows authentication. (when I do this then API does not give popup for login but its give null object for User.Identity.Name)
Reference: I have implemented windows authentication by referring to this article
Note: When I run API from visual studio (IIS Express) its works fine, but when I host API to local IIS, then I am facing a challenge as I described above