[ckan-dev] help with the storage API
William Waites
ww at styx.org
Wed May 18 20:59:19 UTC 2011
Hi Fadi,
I know Rufus has made some changes so I'm not sure the exact details,
but the basic mechanism will be the same as when I first wrote
this. Your token is a function of some headers, including the size of
your uploaded blob (or its hash) and CKAN's private key. The required
headers are documented on the Goostor API page. You give the HTTP
headers to CKAN, it signs them with its key and gives you a token. You
then upload your blob with *exactly* the same headers, plus the token,
by talking to Google directly. It's pretty fugly but probably the best
that can be done to delegate credentials...
HTH,
-w
* [2011-05-18 21:53:32 +0100] Maali, Fadi <fadi.maali at deri.org> écrit:
] * sorry if this was sent twice *
]
] Hi All,
]
] I need to interact with the storage API from my Java program so I can't
] use the existing Python library.
]
] Using /api/storage/auth/request/{key} I managed to get the authorization
] token. I don't know how to proceed now.
] Do I interact now directly with the Google storage API or with CKAN API?
] Should I call /api/storage/auth/form and with what input?
]
] Help is highly appreciated!
]
] Thanks,
] Fadi
]
] _______________________________________________
] ckan-dev mailing list
] ckan-dev at lists.okfn.org
] http://lists.okfn.org/mailman/listinfo/ckan-dev
--
William Waites <mailto:ww at styx.org>
http://river.styx.org/ww/ <sip:ww at styx.org>
F4B3 39BF E775 CF42 0BAB 3DF0 BE40 A6DF B06F FD45
More information about the ckan-dev
mailing list