Skip to content
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

Convert the token from a string to an object #1585

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

bbockelm
Copy link
Collaborator

@bbockelm bbockelm commented Sep 3, 2024

The token tracked internally through a transfer is now a standalone struct instead of a string. The get method that produces the string needed for transfers will check the validity of the current token and, if it's expired, iterate through the environment to find a new one.

The goal is long-lived transfers will be able to acquire a fresh token, as needed, from their environment (or from the token issuer) instead of using the expired one.

client/acquire_token.go Dismissed Show dismissed Hide dismissed
The token tracked internally through a transfer is now a standalone struct
instead of a string.  The `get` method that produces the string needed for
transfers will check the validity of the current token and, if it's expired,
iterate through the environment to find a new one.

The goal is long-lived transfers will be able to acquire a fresh token, as needed,
from their environment (or from the token issuer) instead of using the expired one.
@turetske turetske merged commit a33a5e7 into PelicanPlatform:main Sep 13, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants