[SOLVED] java Authenticate an EWS application by using OAuth

Issue

This Content is from Stack Overflow. Question asked by Xuebin Liu

I have an java app which supports Basic Authentication´╝îMicrosoft is disabling the Basic Authentication option across all Office 365 Tenants on October 1.

In this case, how do I achieve Authenticate an EWS application by using OAuth using java? Is there a proper documentation with Java code available?Thanks a lots.



Solution

It depends what libraries your using in Java but regardless of the language your using the first thing you will need is an application registration and you need to decide on the type of oAuth authentication flow you are going to use which depends on the type of application you have see https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth as a starter


This Question was asked in StackOverflow by Xuebin Liu and Answered by Glen Scales It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?