Reputation: 113
I have an app that uses Basic Authentication to access office365 via EWS, is there any documentation on how to do OAuth2 with EWS?
What endpoints do I authenticate with?
I have searched google but cant seem to find information on using OAuth2 with EWS.
Upvotes: 3
Views: 1739
Reputation: 22032
You use the Standard Azure oAuth tokens and endpoints (using the ADAL library if you wish which makes things easy) there is a step by step document for doing this https://msdn.microsoft.com/en-us/library/office/dn903761(v=exchg.150).aspx . The only point to remember is that EWS only has one authentication scope which is Full Mailbox Access. All the other Mail,Calendar,Contacts scopes are for the new REST API only.
Upvotes: 1