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
The token file is only set up to store one token at a time. This causes the following problem: If a user uses zstash to transfer to Globus Endpoint A and then to Globus Endpoint B, they will get a TransferAPIError, as described in case 1 of Update auth tests #397 (comment), unless they first delete the token file to start fresh (as in case 3 of that link)
Since TOKEN_FILE is hard-coded as TOKEN_FILE = os.path.expanduser("~/.zstash_globus_tokens.json") in zstash/zstash/globus_utils.py, it is not currently possible to use different token files for different things (testing, for example, as noted in Update auth tests #397 (comment)).
Describe the solution you'd like
Either allow the token file to store multiple tokens or allow the use of multiple token files. Either way, this will require either a way for zstash to accurately determine which token to use. With inadequate information there, it may have to resort to looping through tokens to check if they work.
Allow the use of multiple token files or for users to specify which token file they want zstash to check.
How will this affect the next version number?
New feature (increment MINOR version)
Is your feature request related to a problem?
zstashto transfer to Globus Endpoint A and then to Globus Endpoint B, they will get aTransferAPIError, as described in case 1 of Update auth tests #397 (comment), unless they first delete the token file to start fresh (as in case 3 of that link)TOKEN_FILEis hard-coded asTOKEN_FILE = os.path.expanduser("~/.zstash_globus_tokens.json")inzstash/zstash/globus_utils.py, it is not currently possible to use different token files for different things (testing, for example, as noted in Update auth tests #397 (comment)).Describe the solution you'd like
zstashto accurately determine which token to use. With inadequate information there, it may have to resort to looping through tokens to check if they work.zstashto check.Describe alternatives you've considered
No response
Additional context
No response