X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/dd2634cad1db669ce19237805bb7fa83a1913d26..b6f54ccb32e05348e9a5c76c7ed3211203cd4e55:/apps/workbench/app/views/users/_manage_current_token.html.erb diff --git a/apps/workbench/app/views/users/_manage_current_token.html.erb b/apps/workbench/app/views/users/_manage_current_token.html.erb index b87d80acd7..f4436ba8b9 100644 --- a/apps/workbench/app/views/users/_manage_current_token.html.erb +++ b/apps/workbench/app/views/users/_manage_current_token.html.erb @@ -1,11 +1,25 @@ -### Pasting the following lines at a shell prompt will allow Arvados SDKs -### to authenticate to your account, <%= current_user.email %> -read ARVADOS_API_TOKEN <<EOF -<%= Thread.current[:arvados_api_token] %> -EOF -export ARVADOS_API_TOKEN ARVADOS_API_HOST=<%= current_api_host %> +
The Arvados API token is a secret key that enables the Arvados SDKs to access Arvados with the proper permissions. For more information see <%= link_to raw('Getting an API token'), "#{Rails.configuration.arvados_docsite}/user/reference/api-tokens.html", target: "_blank"%>.
+Paste the following lines at a shell prompt to set up the necessary environment for Arvados SDKs to authenticate to your account, <%= current_user.email %>
+ ++HISTIGNORE=$HISTIGNORE:'export ARVADOS_API_TOKEN=*' +export ARVADOS_API_TOKEN=<%= Thread.current[:arvados_api_token] %> +export ARVADOS_API_HOST=<%= current_api_host %> <% if Rails.configuration.arvados_insecure_https %> -export ARVADOS_API_HOST_INSECURE=true +export ARVADOS_API_HOST_INSECURE=true <% else %> -unset ARVADOS_API_HOST_INSECURE +unset ARVADOS_API_HOST_INSECURE <% end %> ++