{"action":"created","issue":{"url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/379","labels_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/379/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/379/comments","events_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/379/events","html_url":"https://github.com/OfficeDev/ews-java-api/issues/379","id":96328562,"number":379,"title":"Autodiscover not working in EWS Java API using OAuth","user":{"login":"pranjaljain","id":10221062,"avatar_url":"https://avatars.githubusercontent.com/u/10221062?v=3","gravatar_id":"","url":"https://api.github.com/users/pranjaljain","html_url":"https://github.com/pranjaljain","followers_url":"https://api.github.com/users/pranjaljain/followers","following_url":"https://api.github.com/users/pranjaljain/following{/other_user}","gists_url":"https://api.github.com/users/pranjaljain/gists{/gist_id}","starred_url":"https://api.github.com/users/pranjaljain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranjaljain/subscriptions","organizations_url":"https://api.github.com/users/pranjaljain/orgs","repos_url":"https://api.github.com/users/pranjaljain/repos","events_url":"https://api.github.com/users/pranjaljain/events{/privacy}","received_events_url":"https://api.github.com/users/pranjaljain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-21T14:24:06Z","updated_at":"2015-09-29T20:18:47Z","closed_at":null,"body":"I am facing an issue with EWS OAuth,. I got oauth2 authorization token and trying to do:\r\n\r\n    service.getHttpHeaders().put(\"Authorization\", \"Bearer <token>\");\r\n    service.autodiscoverUrl(\"<email id>\", new RedirectionUrlCallback());\r\nand I get this error: microsoft.exchange.webservices.data.autodiscover.exception.AutodiscoverLocalException: The Autodiscover service couldn't be located."},"comment":{"url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/comments/144180105","html_url":"https://github.com/OfficeDev/ews-java-api/issues/379#issuecomment-144180105","issue_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/379","id":144180105,"user":{"login":"mikebell90","id":780301,"avatar_url":"https://avatars.githubusercontent.com/u/780301?v=3","gravatar_id":"","url":"https://api.github.com/users/mikebell90","html_url":"https://github.com/mikebell90","followers_url":"https://api.github.com/users/mikebell90/followers","following_url":"https://api.github.com/users/mikebell90/following{/other_user}","gists_url":"https://api.github.com/users/mikebell90/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebell90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebell90/subscriptions","organizations_url":"https://api.github.com/users/mikebell90/orgs","repos_url":"https://api.github.com/users/mikebell90/repos","events_url":"https://api.github.com/users/mikebell90/events{/privacy}","received_events_url":"https://api.github.com/users/mikebell90/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T20:18:47Z","updated_at":"2015-09-29T20:18:47Z","body":"OAuth has it's own discovery process if you are talking about Office365 OAuth. You don't use EWS autodiscovery at all. And for Office365 the same EWS endpoint is always used."}}