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
{{ message }}
Repository navigation
docs: send access tokens in the TES tutorials #134
The TES tutorials (interactive services on TES, the OMOP stack on TESK, the TES hub) use an open TES instance by default (TES_URL) and send no Authorization header. ELIXIR On-Cloud TES instances are moving to token access: from then on, every request of the scripts gets 401, and readers don't learn where to get a token.
How?
In every script and command of docs/tutorials/tes-services/ (interactive_services_tes.md, interactive_services_tes_commands.md, tes-hub/tes-service.sh, omop-tesk/omop-tesk-fi.sh), send Authorization: Bearer $TES_TOKEN when TES_TOKEN is set, and fail early with a clear message when the TES answers 401 or 403.
Keep the token out of the command line and the shell history (read it from the environment or with a hidden prompt), and never write it to files or logs.
Explain where users get a token (LS Login, with membership in the ELIXIR On-Cloud compute group), how long it lives, and what 401 and 403 mean.
Update the default TES_URL and the table of variables to the instance's new address, once it is known.
Remove the notes that the default instance is unauthenticated.
Run each script once against a TES with tokens and note the result in the PR.
Acceptance criteria
All tutorial scripts work against a TES that requires tokens, with TES_TOKEN set, and fail clearly without it.
Activity