You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am running the below code and get an error for invalid credentials:
from office365.runtime.auth.authentication_context import AuthenticationContext
from office365.sharepoint.client_context import ClientContext
The support for SAML-based federated authentication with SharePoint Online has been added (version 2.1.7 or above) meaning it should work as expected now with Okta identity provider.
If not, please report back.
Note: since the new version has not yet been released to PyPi, it needs to be installed from GitHub instead at the moment, for example:
Hi
i am running the below code and get an error for invalid credentials:
from office365.runtime.auth.authentication_context import AuthenticationContext
from office365.sharepoint.client_context import ClientContext
site_url = 'url'
username = '[email protected]'
password = 'Password'
ctx_auth = AuthenticationContext(url = site_url)
if ctx_auth.acquire_token_for_user(username, password):
ctx = ClientContext(site_url, ctx_auth)
else:
print(ctx_auth.get_last_error())
I believe this might be due to my organization using SSO with Okta for SharePoint authentication, is there a way to fix the issue.
Thanks
Pulkit
The text was updated successfully, but these errors were encountered: