1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <div class="panel panel-default">
6 <div class="panel-heading">
7 <h4 class="panel-title">
8 <a data-parent="#arv-adv-accordion" href="/current_token">
14 <div id="#manage_current_token" class="panel-body">
15 <p>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.Workbench.ArvadosDocsite}/user/reference/api-tokens.html", target: "_blank"%>.</p>
16 <p>Paste the following lines at a shell prompt to set up the necessary environment for Arvados SDKs to authenticate to your <b><%= current_user.username %></b> account.</p>
19 HISTIGNORE=$HISTIGNORE:'export ARVADOS_API_TOKEN=*'
20 export ARVADOS_API_TOKEN=<%= Thread.current[:arvados_api_token] %>
21 export ARVADOS_API_HOST=<%= current_api_host %>
22 <% if Rails.configuration.TLS.Insecure %>
23 export ARVADOS_API_HOST_INSECURE=true
25 unset ARVADOS_API_HOST_INSECURE
28 <p>Arvados<%= link_to virtual_machines_user_path(current_user) do%> virtual machines<%end%> do this for you automatically. This setup is needed only when you use the API remotely (e.g., from your own workstation).</p>