Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:Security
-
HD-Enabler:KeyRock
Description
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)
);
});
Unfortunately I did not get any answer
Can you please explain why?
Regards, Andrea
Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one.
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-tech-help
[Created via e-mail received from: Andrea Vitaletti <andrea.vitaletti@w-lab.it>]
Activity
Fix Version/s | 2021 [ 12600 ] |
HD-Enabler | KeyRock [ 10889 ] | |
HD-Chapter | Security [ 10841 ] |
Sender Email | andrea.vitaletti@w-lab.it |
Summary | FIWARE.Request.Lab.Security.IDM-KeyRock.IDM and ObjectStore | FIWARE.Request.Tech.Security.IDM-KeyRock.IDM and ObjectStore |
Summary | [Fiware-tech-help] IDM and ObjectStore | FIWARE.Request.Lab.Security.IDM-KeyRock.IDM and ObjectStore |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Assignee | Kalman Meth [ kalman.meth ] | Alvaro Alonso [ aalonsog ] |
Assignee | Kalman Meth [ kalman.meth ] |
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |