projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80d3540
)
arv-tag authenticates to the API server with OAuth2.
author
Brett Smith <brett@curoverse.com>
Fri, 21 Aug 2015 13:34:43 +0000
(09:34 -0400)
committer
Brett Smith <brett@curoverse.com>
Fri, 21 Aug 2015 13:35:14 +0000
(09:35 -0400)
No issue #.
sdk/cli/bin/arv-tag
patch
|
blob
|
history
diff --git
a/sdk/cli/bin/arv-tag
b/sdk/cli/bin/arv-tag
index e400dab7dabdc656d6e552ed762194d0bc0b20fb..5196d03bc23df12affff8b9acc3e3f4cfb8a9b0b 100755
(executable)
--- 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