Search code examples
exchange-serverexchangewebservices

How to get Credentials from EWS Auto discover / GetUserAvailability request


How to get Credentials from autodiscover and GetUserAvailabilityRequest for the address space configured in exchange server. "Authorization" header and "AuthType" is returning null values for the request.


Solution

  • Figured out the problem. I missed out setting "www-authenticate" header in the response to the unauthenticated request. Once that is set, I am able to receive the credentials for subsequent requests from exchange server.