[Fiware-fabulous-coaching] Cannot get access token

Miquel Ferrer miquel at carbonbyte.com
Thu May 7 18:38:21 CEST 2015


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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-fabulous-coaching/attachments/20150507/b4375fc1/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