Have a look at: Credentials and Delegation
] for a few things that must be in place for this to work.
Try removing the stuff below
should return the user accessing your application through browsers supporting Integrated Windows Authentication - Firefox may cause some trouble, but Chrome and IE should work as long as everything is configured correctly. Remember that the IIS service user must be an AD user.