Windows authentication for internal applications on IIS
For internal applications, which means client and server are the on the same domain:
Add the application on IIS.
Disable Anonymous Authentication and enable Windows Authentication for this application on IIS.
When Anonymous Authentication is enabled and there is no other authentication mechanism implemented:
Request
Response
After Anonymous Authentication is disabled and Windows Authentication is enabled:
Request
Response
The server sends a 401 response with a WWW-Authenticate: Negotiate header. The client browser responds to “the challenge” by adding a Authorization: Negotiate <value> header to the same request and gets a successful response.
Request
Response
A AUTH_USER server variable is set with the logged in username as the value.