Using OAuth AuthenticationCData Python Connector for Office 365 2019 - Build 19.0.7416
OAuth requires the authenticating user to interact with Office 365 using the browser. The provider facilitates this in various ways as described below.
You will need to register an app to obtain the OAuthClientId and OAuthClientSecret.
You need to create an OAuth app to use in the web flow.
You need to create an OAuth app.
In the headless OAuth flow, users need to authenticate via a browser on another machine. You will need to create a custom OAuth app.
Creating a Custom OAuth App
See Creating a Custom OAuth App for a procedure.