I have a fairly simple task. I need to be able to create draft messages in my Outlook account from Python. I understand this entails registering an app in the Azure Active Directory and setting the respective permissions - that I have done. My problem is in logging in from Python - I cannot figure out how to do it. I know there are sample scripts for various avenues of doing so but they did not help me. I do not need any complicated web pages created with Flask, I just have to login and make a simple graph api call.
If you could show a bare-bones example of logging in from Python I would very much appreciate it.
Thanks!