[Fiware-fabulous-coaching] Cannot get access token

Miquel Ferrer miquel at carbonbyte.com
Thu May 14 16:16:29 CEST 2015


Hi there,

Also, I am receiving JIRA emails regarding my request for community account
upgrade, but I am afraid I have no account here, so I cannot enter to send
the required information.
Pasquale Vitale asked me for our account, its "info at carbonbyte.com", and
our tenant ids are:
00000000000000000000000000004665 for the  "carbonbyte-studios cloud" tenant
and
00000000000000carbonbyte-studios for the "info at carbonbyte.com" tenant

Thanks!



Edificio M3 · Planta 1 Oficina 107 · C/ Adaja 10 · 37185 · Villamayor (
Salamanca)

On 13 May 2015 at 19:39, Miquel Ferrer <miquel at carbonbyte.com> wrote:

> Hello,
> The node i was working in was Spain. I understand it has been substitited
> by Spain2 and all users have been migrated, therefore i cannot enter and
> object storage is no longer available
> El 13/05/2015 16:33, "stefano de panfilis" <stefano.depanfilis at eng.it>
> escribió:
>
>> dear miquel,
>>
>> thank you very much for your help and for sending your feedback and so
>> detiled issue explanations so we are able to identify the problem and solve
>> it
>>
>> on which node you are allocated?
>> as you know we are experienceing some issues after the deployment fo the
>> new idm (this was needed to support the new fiware user policy).
>>
>> in addition some node are also migrating their openstack version. so all
>> together the situation is a bit complex, but we are working hard to
>> everythin back to full operation within few days.
>>
>> ciao,
>> stefano
>>
>> ciao,
>> stefano
>>
>> 2015-05-13 11:42 GMT+02:00 Miquel Ferrer <miquel at carbonbyte.com>:
>>
>>> Hi there Pasquale,
>>>
>>> I have already asked for a community account upgrade just in case this
>>> was the problem, but I still cannot get past step3 (sending the
>>> passwordCredentials with the tenantName)
>>> I have also tried with the two tenant names i have (the "normal" one and
>>> the one ending with "cloud") but I always get this message
>>>
>>> {"error": {"message": "The request you have made requires
>>> authentication.", "code": 401, "title": "Unauthorized"}}
>>>
>>> What could I do?
>>>
>>> Thanks
>>> Miquel
>>>
>>>
>>>
>>> Edificio M3 · Planta 1 Oficina 107 · C/ Adaja 10 · 37185 · Villamayor (
>>> Salamanca)
>>>
>>> On 8 May 2015 at 16:36, Pasquale Vitale <pvitale at eng.it> wrote:
>>>
>>>>  Hi Miquel,
>>>> the steps are these (but if you have got the "401 Unauthorized" status,
>>>> probably they are assigning new resources and you cannot access to fiware
>>>> lab.
>>>> Let me know if you can access in to fiware lab):
>>>>
>>>> 1. Initial Token (POST)
>>>> header: content-type = aplication/json
>>>> body: {"auth": {"passwordCredentials": {"username":"your_email",
>>>> "password":"your_password"}}}
>>>> url: https://cloud.lab.fiware.org/keystone/v2.0/tokens
>>>>
>>>> *retrieve the token id "**TOKEN_ID**"  *(Ex:
>>>> A1lEWgTJjyi_Gdafoc1L2oCsGYbCMGXi_-b0Vh6QOC0gLiIWWGkSrSKJ7V86dgJsqvWExy4QvK521QviTiQNyw)
>>>>
>>>> 2. Tenant (GET)
>>>> header: x-auth-token = TOKEN_ID
>>>> url: https://cloud.lab.fiware.org/keystone/v2.0/tenants
>>>>
>>>> *retrieve the token id "TENANT_ID"* (Ex:
>>>> 00000000000000000000000000000460)
>>>>
>>>> 3. Token for Object Storage (POST)
>>>> header: content-type = aplication/json
>>>> body: {"auth": {"passwordCredentials": {"username":"your_email",
>>>> "password":"your_password"},"tenantName":"TENANT_ID"}}
>>>> url: https://cloud.lab.fiware.org/keystone/v2.0/tokens
>>>>
>>>> *retrieve the token for Object Storage "ID" *(Ex:
>>>> 3a5cffde6dddec7691a22e182f4e28de)
>>>>
>>>> 4. Call (GET) - list of object storage
>>>> header: X-Auth-Token = 3a5cffde6dddec7691a22e182f4e28de
>>>> header: Accept = application/cdmi-object
>>>> header: X-CDMI-Specification-Version= 1.0.1
>>>>
>>>> url:
>>>> https://cloud.lab.fiware.org/Spain/object-store/v1/AUTH_00000000000000000000000000000460/
>>>>
>>>> *retrive the list*
>>>>
>>>> * of object storage *Regards,
>>>> Pasquale
>>>>
>>>> Il 07/05/2015 18:38, Miquel Ferrer ha scritto:
>>>>
>>>> I suppose i must have missed one warning email or something, but all of
>>>> a sudden i cannot get my access token to access Object Storage.
>>>>
>>>>  By the way, i am in spain.
>>>>
>>>>  Here is what I do:
>>>>
>>>>  1.- I get the initial token
>>>> POST http://cloud.lab.fi-ware.org:4730/v2.0/tokens
>>>>  sending
>>>>  {
>>>>     "auth": {"passwordCredentials":{"username": "[MY_USERNAME]",
>>>> "password":"[MY_PASSWORD]"}}
>>>> }
>>>>
>>>>  2.- I get the tenant id by calling
>>>> GET http://cloud.lab.fi-ware.org:4730/v2.0/tenants
>>>>  including the header X-auth-token filled with
>>>> the access->token->id from the previous call result
>>>>
>>>>  this returns a list of tenants, i get my tenant id, that has a format
>>>> like so:
>>>> 0000000000000000000000000000XXXX
>>>>
>>>>  3.- I try to get the access token to be used later on the Object
>>>> Storage GE calling
>>>> POST http://cloud.lab.fi-ware.org:4730/v2.0/tokens
>>>> including the header Content-Type : application/json
>>>> sending
>>>>  {
>>>>     "auth":
>>>>     {
>>>>         "tenantName": "[MY_TENANT_ID]",
>>>>         "passwordCredentials":
>>>>         {"username": "[MY_USERNAME]", "password": "[MY_PASSWORD]"}
>>>>     }
>>>> }
>>>>
>>>>  and the error occurs....
>>>> {"error": {"message": "The request you have made requires
>>>> authentication.", "code": 401, "title": "Unauthorized"}}
>>>>
>>>>  I've tried to use the other tenant id i received on step 2 with the
>>>> same result
>>>>
>>>>  also, including the X-auth-token header doesn't make a change.
>>>>
>>>>
>>>>  What could i possibly be doing wrong?
>>>>
>>>>  Thanks!
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Edificio M3 · Planta 1 Oficina 107 · C/ Adaja 10 · 37185 · Villamayor (
>>>> Salamanca)
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Fiware-fabulous-coaching mailing listFiware-fabulous-coaching at lists.fi-ware.orghttps://lists.fi-ware.org/listinfo/fiware-fabulous-coaching
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Fiware-fabulous-coaching mailing list
>>>> Fiware-fabulous-coaching at lists.fi-ware.org
>>>> https://lists.fi-ware.org/listinfo/fiware-fabulous-coaching
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Fiware-fabulous-coaching mailing list
>>> Fiware-fabulous-coaching at lists.fi-ware.org
>>> https://lists.fi-ware.org/listinfo/fiware-fabulous-coaching
>>>
>>>
>>
>>
>> --
>> Stefano De Panfilis
>> Chief Innovation Officer
>> Engineering Ingegneria Informatica S.p.A.
>> via Riccardo Morandi 32
>> 00148 Roma
>> Italy
>>
>> tel (direct): +39-06-8759-4253
>> tel (secr.): +39-068307-4513
>> fax: +39-068307-4200
>> cell: +39-335-7542-567
>> skype: depa01
>> twitter: @depa01
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-fabulous-coaching/attachments/20150514/bd099529/attachment.html>


More information about the Fiware-fabulous-coaching mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy