Skip to content

[Feature]: Further improve Globus integration via globus_sdk.UserApp #413

@forsyth2

Description

@forsyth2

How will this affect the next version number?

Small improvement (increment PATCH version)

Is your feature request related to a problem?

There have been several Globus authentication/integration issues to resolve. Some of these have fixes already, but in any case, zstash could benefit from improved Globus integration.

Issue Fix
Token timeout (step 6 from the list in #339) #407 (potentially already fixed on main via #380 & #397)
Tar files not deleting when --non-blocking is set: #374 #405 (+ the test in #404)
update too slow for HR: #409 #411 (closed), #412
check too slow for HR: #410 #411 (closed), #412
Better handle token file (i.e., store multiple tokens, allow user to specify a token file): #398 #408
Support Globus 4.0: #395 #406

Note: #409/#410 aren't actually Globus-specific.

Describe the solution you'd like

@NickolausDS suggested using globus_sdk.UserApp. For example:

with globus_sdk.UserApp(
    "detect-data-access-example", client_id=NATIVE_CLIENT_ID
) as app:
    # Handles saving/loading tokens
    transfer_client = globus_sdk.TransferClient(app=app)

It would also be useful to review https://globus-sdk-python.readthedocs.io/en/stable/user_guide/usage_patterns/data_transfer/detecting_data_access/index.html.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions