Hi
I downloaded the code from https://github.com/ging/oauth2-example-client
and it works perfectly to get user info
Now, according to the pdf in the doc folder
https://github.com/ging/oauth2-example-client/blob/master/docs/oauth2_tutorial.pdf,
having obtained the * access_token* by in the req.session.access_token
In principle I should be able to access the objecstorage in the cloud by
GET https://GE_URL HTTP/1.1
Host: GE_hostname
X-‐Auth-‐Token: *access_token *
where
https://GE_URL should be '
https://cloud.lab.fi-ware.org/#objectstorage/containers/'
simply using a modification of the code to get the user as in the following
app.get('/list_storage', function(req, res){
var url = 'https://cloud.lab.fi-ware.org/#objectstorage/containers/';
console.log("auth token:"+req.session.access_token)
// Using the access token to list the containers
oa.get(url, req.session.access_token, function (e, response) {
res.send(response);
});
});
Unfortunately I did not get any answer
Can you please explain why?
Regards, Andrea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20151003/ac2f184f/attachment.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy