Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

an error occurred while retrieving auth cookies 2.3.1 #308

Open
ryanthelen55 opened this issue Dec 17, 2020 · 3 comments
Open

an error occurred while retrieving auth cookies 2.3.1 #308

ryanthelen55 opened this issue Dec 17, 2020 · 3 comments
Labels

Comments

@ryanthelen55
Copy link

I am trying to read files from a sharepoint location.

1.) Does my site url need to be where the file I want to read is located
2.) I receive this error:

an error occurred while retrieving auth cookies from https://tenantprefix.sharepoint.com/_forms/default.aspx?wa=wsignin1.0

Below is my code which I added my credentials and tenant prefix

from office365.runtime.auth.user_credential import UserCredential
from office365.sharepoint.client_context import ClientContext
site_url = "https://{your-tenant-prefix}.sharepoint.com"
ctx = ClientContext(site_url).with_credentials(UserCredential("{username}", "{password}"))
web = ctx.web
ctx.load(web)
ctx.execute_query()
print("Web title: {0}".format(web.properties['Title']))
@vgrem vgrem added the question label Dec 18, 2020
@lw1959
Copy link

lw1959 commented Dec 22, 2020

Using code that works fine in 2.2.0, I am now receiving the same error with 2.3.1.

We are federated with ADFS.

@Vel-San
Copy link

Vel-San commented Jan 21, 2021

+1 Same issue here.

EDIT: Reverting back to 2.2.2 solved the issue.

@kayx23
Copy link

kayx23 commented Jun 21, 2021

Issue persists for 2.3.4. Reverting back to 2.2.2 did not solve the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants