Menu

#58 Support of O365 client_credentials authorization flow

v6.0.1
open
nobody
None
5
2023-03-25
2022-10-28
No

The patch set enables EWS+OAuth2 with the client_credentials flow and also updates the [English] GUI to permit setting all required values.

Microsoft is switching off Basic Authentication which means that non-interactive use of DavMail for automated email based services needs to move to app-only authentication which is client_credentials based.

The Exchange server needs to be configured for app-only auth. See https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth If only specific email accounts should be accessible, suitable access control also needs to be enabled on the server.

Remember the usual: Not responsible for anything, no warranties expressed or implied, your mileage may vary, etc ... :-)

4 Attachments

Related

Patches: #58

Discussion

  • Bayapa Dadem

    Bayapa Dadem - 2022-11-23

    Hi,

    We are using DavMail version: 6.0.1-339 and we are implementing O365 authentication, we are getting an error "-ERR Authentication failed: invalid user or password"

    we suspect this error is coming due to Password is not passed to O365.

    Can you please help us how to apply these patches into our current DavMail version?

     
  • Bayapa Dadem

    Bayapa Dadem - 2022-11-23

    error at the O365: Sign-in error code900144Failure reasonThe request body must contain the following parameter: '{name}'.Additional DetailsDeveloper error - the app is attempting to sign in without the necessary or correct authentication parameters.

     
  • Bayapa Dadem

    Bayapa Dadem - 2022-12-02

    I am able to manually add the script provided in the patches into source and build using build instructions then I have copied lib and other files from dist folder to exiting installation folder.

    now we are able to pass the Client Secret value and Check the Enable OIDC/V2.0 option.

    after these settings done, Siebel CRM is able to read emails using O365 via DavMail.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.