0

In C#, it's kind of easy to use windows credentials for making another web request from a web request (using webclient) : WCF impersonation/ Authentication

Is it possible to make the same with PHP ? I have a WCF web service that I would call from a PHP script who is on another server that the one where the PHP script is hosted.

Thanks by advance.

Community
  • 1
  • 1
eka808
  • 2,257
  • 3
  • 29
  • 41
  • You could probably do some kind of LDAP query against Active Directory to authenticate a user. There's probably a library out there for that purpose. – Doug Dawson May 06 '14 at 13:01
  • 1
    Found it right here on Stackoverflow: http://stackoverflow.com/questions/171519/authenticating-in-php-using-ldap-through-active-directory – Doug Dawson May 06 '14 at 13:02
  • Thanks Doug. However, is it possible to use the integrated windows authentication to login ? – eka808 May 06 '14 at 13:12
  • If the PHP script was executed by IIS, IIS can use Windows authentication to allow Windows users to execute the script, but I don't know of a way to pass the authentication token from PHP to WCF. – Doug Dawson May 06 '14 at 16:02

0 Answers0