I've got a windows server which runs our team foundation server and my self written .NET-Webservice. The windows server acts inside of a domain. My webserver gets now the username and password for other computers inside of the domain. How can I authenticate them on my webservice? I want that only users, which are part of the domain, are able to work with the webservice.
Asked
Active
Viewed 35 times
0
-
What web service - IIS hosted, self hosted ? Googling for "windows authentication" might help you ... – Ondrej Svejdar Sep 05 '16 at 08:05
1 Answers
0
If you get the username and password as parameter to the API you can use the method described here:
Validate a username and password against Active Directory?
If it is a IIS hosted Application you can configured it in the web.config (windows authentication)
-
I have my application hosted on the IIS, but I cant use a username and password for a windows-authentification. So the windows-authentification checks automatically if a computer is already inside of the domain, or not. Did I get this right? – Felix Traum Sep 05 '16 at 10:56
-
Yes, if it is hostet in IIS you can add
to the Section in the web.config – Zortaniac Sep 05 '16 at 10:57