davmail icon indicating copy to clipboard operation
davmail copied to clipboard

O365 Interactive/Manual does not open anything

Open gpanders opened this issue 3 years ago • 11 comments

I'm new to DavMail and have been reading through the docs trying to get started. I'm trying to connect to my company's O365 server which requires MFA. I've tried setting the mode to both O365Interactive and O365Manual and I gather that I'm supposed to see a window or pop-up of some kind that connects to the server and starts the authentication flow, but I'm not seeing anything.

It's possible this is user error, but if so then I am not sure what I'm doing wrong. I'm tailing the log files and I see DavMail trying to connect to the O365 server and it gets a 401 Unauthorized response (of course).

Forgot to mention: I'm on macOS Catalina.

gpanders avatar Jun 10 '21 14:06 gpanders

Hitherto I have used a server configuration with the DavMail mode "Interactive/Manual" successfully - but today, after some weeks of not being asked to authenticate, I find I cannot open anything - neither the link works not the Open button.

ilippert avatar Jun 26 '21 14:06 ilippert

well, any when I exit DavMail, then suddenly the browser gets the signal to open the link.

ilippert avatar Jun 26 '21 14:06 ilippert

workaround: press "open" once. then exit the DavMail. Then the browser opens. Authenticate yourself. then start the davil client again, wait for the request to paste the URL. Then copy and paste from the browser.

ilippert avatar Jun 26 '21 14:06 ilippert

Unfortunately that doesn't work for me. Even when exiting DavMail, nothing opens in my browser. I've tried both server and workstation modes.

gpanders avatar Jun 30 '21 16:06 gpanders

My problem looks similar to the one mentioned here. Unfortunately that poster never got a response.

gpanders avatar Jun 30 '21 16:06 gpanders

In order to make interactive authentication work, you need an up to date JDK with OpenJFX support. DavMail was tested with latest Azul JRE FX, on windows a standalone package is available with this this JRE, on Linux you can use the platform independent package and execure davmail azul once to get Azul JRE with OpenJFX support.

If your issue is DavMail interaction with browser, please try latest trunk build: recently merged a pull request to add a copy to clipboard button

mguessan avatar Jul 08 '21 13:07 mguessan

Thanks a lot, but at https://sourceforge.net/projects/davmail/files/davmail%20trunk/, unfortunately, I cannot find the trunk build. Where to find it, please?

ilippert avatar Jul 11 '21 05:07 ilippert

Trunk builds are available on Github directly: https://github.com/mguessan/davmail#trunk-builds

mguessan avatar Jul 12 '21 09:07 mguessan

I don't know much about Java. I am using MacPorts and I've tried using the openjdk16 package, the openjdk16-zulu package (which is the Azul version), and I've also installed openjfx11 (the only version of OpenJFX available in MacPorts). All of these have the same result: when I select O365 Interactive in the settings dropdown, nothing happens.

gpanders avatar Jul 12 '21 14:07 gpanders

re the trunk: The clipboard button works! Thanks!

ilippert avatar Jul 14 '21 05:07 ilippert

I don't know much about Java. I am using MacPorts and I've tried using the openjdk16 package, the openjdk16-zulu package (which is the Azul version), and I've also installed openjfx11 (the only version of OpenJFX available in MacPorts). All of these have the same result: when I select O365 Interactive in the settings dropdown, nothing happens.

I also met the same issue on fedora 34. And I tried the latest davmail-6.0.0-trunk.zip. I could copy the url and open it in browser. What should I do the next step ? I passed the authentication and got stuck in url 'Are you trying to sign in to Microsoft Office?' There are just 2 options Cancel and Continue. I clicked both of them but didn't get any response.. I also paste the url to davmail manual authentication window Authentication code line. But login failed...

liuyd96 avatar Jul 19 '21 10:07 liuyd96