简体   繁体   English

FI-LAB:对象存储身份验证

[英]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). 我在Lannion2节点中有社区帐户,他们具有有效的ObjectStorage GE实施(至少可以通过云菜单运行)。

The problem is I cannot access the ObjectStorage API beacause of authentication procedure. 问题是由于身份验证过程,我无法访问ObjectStorage API。 It seems the authentication API for ObjectStorage changed since cloud changed IDM on May 2015. 自2015年5月更改IDM以来,似乎似乎已更改了ObjectStorage的身份验证API。

Does anyone know how can I get a token to authorize my requests to ObjectStorage API? 有谁知道如何获得令牌来授权对ObjectStorage API的请求?

The way described at FIWARE wiki doesn't work. FIWARE Wiki中描述的方法不起作用。

The process now is the same that you should follow in order to get a token from the Keystone. 现在,与从Keystone获取令牌的过程相同。 Just send a POST request to the corresponding URL: 只需将POST请求发送到相应的URL:

http://cloud.lab.fiware.org:4730/v2.0/tokens 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 令牌ID(access.token.id)是您必须用来发送任何请求的数据,将此值放在X-Auth-Token中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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