Skip to content

Hitting 30 minute credential timeout #234

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

Closed
jaaydub42 opened this issue Jul 22, 2020 · 3 comments
Closed

Hitting 30 minute credential timeout #234

jaaydub42 opened this issue Jul 22, 2020 · 3 comments

Comments

@jaaydub42
Copy link

I have a large Sharepoint upload that is taking over 30 minutes, and the access credential is expiring.

I am handling the upload in chucks using the start_upload, continue_upload, and finish_upload functions. That part appears to be working fine. But before completion I am hitting a token timeout.

It appears that in the adal library there is a acquire_token_with_refresh_token function, but I am not seeing this implemented.

Is there a method of refreshing my client credential token using your library that I am missing?

@flariut
Copy link

flariut commented May 3, 2021

Hi, I'm getting the same issue trying to upload a large file (~4GB, with 10Mb upload speed) using the example for Sharepoint large files (https://github.com/vgrem/Office365-REST-Python-Client/blob/master/examples/sharepoint/files/upload_large_file.py). After 30 minutes, download is stopped and I get a 403 response with "The security validation for this page has timed out". Is there any way to circumvent this limitation until the token refresh is implemented? How can I upload a file that big currently. I'm using SAML authentication. Thank you.

@vgrem
Copy link
Owner

vgrem commented Feb 10, 2022

Staring from 2.3.9 version SharePoint client introduces support to determine if security validation is expired. If it gets expired, it refresh it automatically to prevent the exception: The security validation for this page has timed out to occur.

@vgrem vgrem closed this as completed Feb 10, 2022
@flariut
Copy link

flariut commented Feb 10, 2022

Awesome! Thanks!

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

No branches or pull requests

3 participants