Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4625

FIWARE.Request.Tech.Security.IDM-KeyRock.IDM and ObjectStore

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      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)

      { res.send(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

        There are no comments yet on this issue.

          People

          • Assignee:
            aalonsog Alvaro Alonso
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: