简体   繁体   中英

FI-LAB:Object storage authentiaction

I have community account in Lannion2 node, they have working ObjectStorage GE implementation (at least it works via cloud menu).

The problem is I cannot access the ObjectStorage API beacause of authentication procedure. It seems the authentication API for ObjectStorage changed since cloud changed IDM on May 2015.

Does anyone know how can I get a token to authorize my requests to ObjectStorage API?

The way described at FIWARE wiki doesn't work.

The process now is the same that you should follow in order to get a token from the Keystone. Just send a POST request to the corresponding URL:

http://cloud.lab.fiware.org:4730/v2.0/tokens

with your credentials in the payload

{"auth": {"passwordCredentials": {"username": "****", "password": "****"}}}

It should return information like the following:

{
  "access": {
      "token": {
          "issued_at": "2015-05-29T08:42:35.095682", 
          "expires": "2015-05-30T08:42:35Z", 
          "id": "*****", 
          ...
       }
   }
}

The token id (access.token.id) is the data that you have to use in order to send any request, putting this value in the X-Auth-Token

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM