rustd / AspnetIdentitySample

476 stars 248 forks source link

Windows Authentication #48

Open oteuan opened 8 years ago

oteuan commented 8 years ago

Hi Pranav,

I wanted to ask you something to see if you could please guide me in the right direction. I'm working on a project using Aurelia and MVC. The application is internal so would use Windows Authentication. Right now I have several projects in my solution, a web application that would be the UI and a service for WebAPI calls. The problem comes when trying to make calls from the UI to WebAPI, I always get a 401 Unauthorized. I have also enabled CORS. What would be the best way to deal with this in your opinion, please? All the examples I've seen by now use CookieAuthentication. I have also seen examples with Identity but everything is based on third-party authentication, or using user / password on a table in your database. What I try simply is that the user will have the application in his/her browser, as it is internal it will be authenticated with windows by default. Then every single time he needs to see any data the UI will make calls to the WebAPI for example to see all products for a customer.

Thanks a lot.