HumanBrainProject / ebrains-storage

Python client interface for EBRAINS Collaboratory Drive (Seafile) and Bucket (data-proxy) storage
Apache License 2.0
8 stars 3 forks source link

Token expires while uploading to bucket #21

Open PolarBean opened 1 year ago

PolarBean commented 1 year ago

While iterating through uploading several thousand files to the data proxy bucket the api returns a 401 response and says that the token has expired. Whats the best way to solve this? Thanks! other than this the package works great

xgui3783 commented 1 year ago

I would imagine either use a refresh token to ensure the token is always valid before making the call, or use the client crential flow, and refresh token before it expires here is one implementation we are working with.