Hi,
I want to let users be able to read/write to a company Sharepoint site via Streamlit in CDF. I am developing locally using Github actions to deploy to CDF. Locally I can acquire tokens using client secret and interactive flow, but both fail in CDF. Client secret using request.post to login.microsoft.com(...) throws with
JsException: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://login.microsoftonline.com/xxxxxx-xxx-xxx-xxxxxx/oauth2/v2.0/token'.
Using msal with PublicClientApplication throws with
OSError: [Errno 138] Not supported
Am I trying to do something that I just cant do in the browser in CDF and need to start writing an API for this, or is there a workaround?
Thanks in advance!