E3SM-Project / zstash

Long term HPSS archiving tool for E3SM
BSD 3-Clause "New" or "Revised" License
8 stars 11 forks source link

[Feature]: Add refresh tokens for better Globus functionality #338

Open forsyth2 opened 1 month ago

forsyth2 commented 1 month ago

How will this affect the next version number?

New feature (increment MINOR version)

Is your feature request related to a problem?

zstash users may find themselves needing to re-authenticate into Globus every couple days, when they do not need to do this on the command line.

Describe the solution you'd like

https://globus-sdk-python.readthedocs.io/en/stable/examples/native_app.html#with-refresh-tokens

Describe alternatives you've considered

No response

Additional context

No response

mahf708 commented 1 month ago

I think we likely want a slightly rework of the whole auth logic, it seems to be quite different from what they have on that page above. I would try to mimic it as closely as possible (to avoid running into bugs on their side, etc.)