Mar-26-2021, 10:44 AM
My company uses Office 365 within OneLogin. Therefore I need to log in to OneLogin first then sign into Office 365 (OneDrive). My question is how do I do the authentication for this in Python? I want to read the excel file stored in OneDrive directly. I tried to retrieve the data directly using python requests module with HTTPBasicAuth and HttpNtlmAuth only to get error 403.
I have checked about Python-saml. https://github.com/onelogin/python-saml However, I am not sure this is what I need. This seems more like create a server for OneLogin using Python. I have asked on the Microsoft forum about this problem but they say this is more Python related. What is the correct approach for doing this?
I have checked about Python-saml. https://github.com/onelogin/python-saml However, I am not sure this is what I need. This seems more like create a server for OneLogin using Python. I have asked on the Microsoft forum about this problem but they say this is more Python related. What is the correct approach for doing this?