[Fiware-lab-help] Issues with authentication to FI-ware cloud

Álvaro Alonso aalonsog at dit.upm.es
Fri May 29 13:30:36 CEST 2015


Hi Andrea, 

sorry to insist. But what I need is the final HTTP request your method sends. I’m not an expert in python so I can not analyse the request from the code. 

BR
-- 
Álvaro

> El 28 May 2015, a las 17:52, Andrea Orler <andrea.orler at gmail.com> escribió:
> 
> Hi Álvaro!
> 
> Thank you again for the effort you put in helping me.
> So, I'm sending you the Python class which handles the authentication process.
> For the HTTP requests, I'm using the Requests <http://docs.python-requests.org/en/latest/> library.
> 
> Thank you again,
> Andrea Orler
> 
> Il giorno gio 28 mag 2015 alle ore 16:00 Álvaro Alonso <aalonsog at dit.upm.es <mailto:aalonsog at dit.upm.es>> ha scritto:
> Hi Andrea, 
> 
> could you send me the request you are performing to 'http://cloud.lab.fi-ware.org:4730/v2.0/tokens' <http://cloud.lab.fi-ware.org:4730/v2.0/tokens'>
> 
> Thanks
> -- 
> Álvaro
> 
> 
>> El 22 May 2015, a las 16:00, Andrea Orler <andrea.orler at gmail.com <mailto:andrea.orler at gmail.com>> escribió:
>> 
> 
>> Hi!
>> Thank you for you quick answers.
>> I send you a pair of screenshots to better understand the situation.
>> I am developing my app with Django, a python framework.
>> 
>> In "object_storage.py" you can find the script I use for authenticating (which is similar to the one I found here <https://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/Object_Storage_-_User_and_Programmers_Guide>), with
>> token_host = 'http://cloud.lab.fi-ware.org:4730/v2.0/tokens <http://cloud.lab.fi-ware.org:4730/v2.0/tokens>'
>> 
>> In "runserver" I'm initializing the app running the code in "object_storage.py", and I get the error you can see.
>> 
>> If you need any other info, I'll be glad to give it to you.
>> 
>> Thank you again, I'm very grateful!
>> 
>> Andrea
>> 
>> Il giorno ven 22 mag 2015 alle ore 14:50 Álvaro Alonso <aalonsog at dit.upm.es <mailto:aalonsog at dit.upm.es>> ha scritto:
>> Hi Andrea, 
>> 
>> I don’t fully understand your issue. Which request are you performing?
>> 
>> BR
>> -- 
>> Álvaro
>> 
>>> El 22 May 2015, a las 13:14, Sándor Laki <laki.sandor at wigner.mta.hu <mailto:laki.sandor at wigner.mta.hu>> escribió:
>>> 
>>> Dear Alvaro,
>>> 
>>> Could you please have look at this issue? Andrea's username is andrea.orler at gmail.com <mailto:andrea.orler at gmail.com>
>>> 
>>> Deatils: 
>>> I can log in to the portal (cloud.lab.fiware.org <http://cloud.lab.fiware.org/>), but I can not reach the object storage with my app through the APIs using the same user and psw.
>>> I can get the token, I can get the tenant, but when requesting for the "authentication json" to http://cloud.lab.fi-ware.org:4730/v2.0/tokens <http://cloud.lab.fi-ware.org:4730/v2.0/tokens>, I get a 401 unauthorized status.
>>> 
>>> I experience this problem since right after migration.
>>> 
>>> Best,
>>> Sandor
>>> 
>>> 2015.05.22. 10:49 keltezéssel, Sándor Laki írta:
>>>> I can get the token, I can get the tenant, but when requesting for the "authentication json" to http://cloud.lab.fi-ware.org:4730/v2.0/tokens <http://cloud.lab.fi-ware.org:4730/v2.0/tokens>, I get a 401 unauthorized status.
>>>> 
>>>> Can you kindly tell me you something changed with the authentication or if I'm doing something wrong?
>>>> 
>>>> Thank you very much,
>>>> Andrea Orler
>>>> 
>>> 
>>> 
>>> -- 
>>> Sándor Laki
>>> EU FP7 FI-PPP XIFI project,
>>> Wigner Research Centre for Physics, 
>>> Hungarian Academy of Sciences
>>> Konkoly Thege Miklós út 29-33.
>>> H-1121, Budapest, Hungary
>>> Cell: +36 70 374 2646
>>> Skype: sandor.laki
>>> 
>>> XIFI: https://fi-xifi.eu/home.html <https://fi-xifi.eu/home.html>
>>> FI-PPP: http://www.fi-ppp.eu/ <http://www.fi-ppp.eu/>
> 
>> <runserver.png><object_storage.py.png>
> 
> <authentication.py>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20150529/b6fcf01e/attachment.html>


More information about the Fiware-lab-help mailing list

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