{"action":"created","issue":{"url":"https://api.github.com/repos/gautamsi/ews-javascript-api/issues/23","repository_url":"https://api.github.com/repos/gautamsi/ews-javascript-api","labels_url":"https://api.github.com/repos/gautamsi/ews-javascript-api/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/gautamsi/ews-javascript-api/issues/23/comments","events_url":"https://api.github.com/repos/gautamsi/ews-javascript-api/issues/23/events","html_url":"https://github.com/gautamsi/ews-javascript-api/issues/23","id":147650719,"number":23,"title":"Issues with Autodiscover","user":{"login":"ray73864","id":1343103,"avatar_url":"https://avatars.githubusercontent.com/u/1343103?v=3","gravatar_id":"","url":"https://api.github.com/users/ray73864","html_url":"https://github.com/ray73864","followers_url":"https://api.github.com/users/ray73864/followers","following_url":"https://api.github.com/users/ray73864/following{/other_user}","gists_url":"https://api.github.com/users/ray73864/gists{/gist_id}","starred_url":"https://api.github.com/users/ray73864/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ray73864/subscriptions","organizations_url":"https://api.github.com/users/ray73864/orgs","repos_url":"https://api.github.com/users/ray73864/repos","events_url":"https://api.github.com/users/ray73864/events{/privacy}","received_events_url":"https://api.github.com/users/ray73864/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gautamsi/ews-javascript-api/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-12T06:54:25Z","updated_at":"2016-04-15T20:30:46Z","closed_at":null,"body":"Trying to use the example you have here for autodiscovery and getting user settings however I am hitting a snag when it comes to the Autodiscovery itself.\r\n\r\nI have the AutoDiscoverService set up as:\r\n\r\n`var autod = new ews.AutodiscoverService(ews.ExchangeVersion.Exchange2013);`\r\n\r\nI then do\r\n\r\n`autod.Credentials = new ews.ExchangeCredentials(\"testuser\", \"testpass\", \"mydomain\");`\r\n\r\nI also change the `autod.GetUserSettings()` to have the correct email address in it, however when I run the code via node I get the following issue:\r\n\r\n`Determining which endpoints are enabled for host autodiscover.example.com\r\nHost returned enabled endpoint flags: Legacy,Soap,WsSecurity,OAuth\r\n--hard checking for office 365 with node.js http request and presence of header x-federationtrusttokenissueruri: urn:federation:MicrosoftOnline. All other redirection wil fail\r\nTrying to get Autodiscover redirection URL from http://autodiscover.example.com/autodiscover/autodiscover.xml.\r\n--Request error: 403, Forbidden`\r\n\r\n(Obviously changed the actual domain to example.com just for this issue)\r\n\r\nThere is no 'autodiscover' subdomain on my domain, it is 'mail', also, with Exchange 2016 it looks like (at least on my server) that it is: mail.example.com/Autodiscover/Autodiscover.xml (not the capital A)."},"comment":{"url":"https://api.github.com/repos/gautamsi/ews-javascript-api/issues/comments/210632270","html_url":"https://github.com/gautamsi/ews-javascript-api/issues/23#issuecomment-210632270","issue_url":"https://api.github.com/repos/gautamsi/ews-javascript-api/issues/23","id":210632270,"user":{"login":"gautamsi","id":5769869,"avatar_url":"https://avatars.githubusercontent.com/u/5769869?v=3","gravatar_id":"","url":"https://api.github.com/users/gautamsi","html_url":"https://github.com/gautamsi","followers_url":"https://api.github.com/users/gautamsi/followers","following_url":"https://api.github.com/users/gautamsi/following{/other_user}","gists_url":"https://api.github.com/users/gautamsi/gists{/gist_id}","starred_url":"https://api.github.com/users/gautamsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gautamsi/subscriptions","organizations_url":"https://api.github.com/users/gautamsi/orgs","repos_url":"https://api.github.com/users/gautamsi/repos","events_url":"https://api.github.com/users/gautamsi/events{/privacy}","received_events_url":"https://api.github.com/users/gautamsi/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T20:30:46Z","updated_at":"2016-04-15T20:30:46Z","body":"looking into it."}}