How to handle the authentication for Apps within OneLogin?

王 碩琛 1 Reputation point
2021-03-26T01:19:37.77+00:00

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. What is the correct approach for doing this?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,813 questions
{count} votes