Revert "reverted windows authentication"

This reverts commit a63a0bea5deadbbe3206ed60d895c35a586a738b.