I have an daemon app which supports Basic Authentication using Exchange Web Services and also supports Modern Authentication for Exchange Online using Microsoft Graph APIs.
Now I have a requirement to support Hybrid Authentication in the same application.
I went through the following documentation and found that Rest API support is deprecated
https://docs.microsoft.com/en-us/graph/hybrid-rest-support
In this case, how do I achieve hybrid authentication in the same application using java? Is there a proper documentation with Java code available?