show copy-paste-friendly current token at top of API Tokens page
authorTom Clegg <tom@clinicalfuture.com>
Tue, 23 Jul 2013 16:09:14 +0000 (12:09 -0400)
committerTom Clegg <tom@clinicalfuture.com>
Tue, 23 Jul 2013 16:09:14 +0000 (12:09 -0400)
apps/workbench/app/views/api_client_authorizations/index.html.erb [new file with mode: 0644]

diff --git a/apps/workbench/app/views/api_client_authorizations/index.html.erb b/apps/workbench/app/views/api_client_authorizations/index.html.erb
new file mode 100644 (file)
index 0000000..8077ee7
--- /dev/null
@@ -0,0 +1,11 @@
+<pre>
+### Pasting the following lines at a shell prompt will allow Arvados SDKs
+### to authenticate to your account, <%= current_user.email %>
+
+read ARVADOS_API_TOKEN &lt;&lt;EOF
+<%= Thread.current[:arvados_api_token] %>
+EOF
+export ARVADOS_API_TOKEN ARVADOS_API_HOST=<%= current_api_host %>
+</pre>
+
+<%= render partial: 'index' %>