[ARVADOS] updated: 6a79f929394e3bf1be12ea892593d13861b65573

git at public.curoverse.com git at public.curoverse.com
Fri Aug 21 09:38:21 EDT 2015


Summary of changes:
 sdk/cli/bin/arv-tag | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

       via  6a79f929394e3bf1be12ea892593d13861b65573 (commit)
      from  80d3540193e78a2dfee8373490a0f9e67f9d804a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 6a79f929394e3bf1be12ea892593d13861b65573
Author: Brett Smith <brett at curoverse.com>
Date:   Fri Aug 21 09:34:43 2015 -0400

    arv-tag authenticates to the API server with OAuth2.
    
    No issue #.

diff --git a/sdk/cli/bin/arv-tag b/sdk/cli/bin/arv-tag
index e400dab..5196d03 100755
--- a/sdk/cli/bin/arv-tag
+++ b/sdk/cli/bin/arv-tag
@@ -17,11 +17,13 @@ def usage
 end
 
 def api_call(method, parameters:{}, request_body:{})
-  request_body[:api_token] = ENV['ARVADOS_API_TOKEN']
   result = $client.execute(:api_method => method,
                            :parameters => parameters,
                            :body_object => request_body,
-                           :authenticated => false)
+                           :authenticated => false,
+                           :headers => {
+                             authorization: "OAuth2 #{ENV['ARVADOS_API_TOKEN']}",
+                           })
 
   begin
     results = JSON.parse result.body

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list