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

Try to refresh expired tokens #129

Open
uniqueg opened this issue Nov 6, 2021 · 1 comment
Open

Try to refresh expired tokens #129

uniqueg opened this issue Nov 6, 2021 · 1 comment

Comments

@uniqueg
Copy link
Member

uniqueg commented Nov 6, 2021

Tokens passed by a client may expire during the lifetime of a task, even if they are valid when the original request is received. This may prevent TESK from being to able to use that token to get access to external services, such as DRS and TRS for data and container access, respectively.

TESK should therefore implement a mechanism for token renewal, as is discussed in elixir-cloud-aai/cwl-WES#52.

For those cases where the token is expired upon reception of the request, it is probably fine to keep returning a 401 response and have the client can take care of token refreshal and retrying, if applicable.

@uniqueg
Copy link
Member Author

uniqueg commented Nov 6, 2021

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

No branches or pull requests

1 participant