I'm trying to access Microsft Graph APIs and I need to automate the process of oauth. I do not want to have a web app in order to sign on microsoft login page to obtain code and token. Is there a way to acheive this in backend where I can login from the python script itself ?
I've tried this resource- https://github.com/microsoftgraph/python-sample-auth but here the login to microsoft is done on the UI