[Fiware-tech-help] Cosmos GE authentication

Aggelos Groumas gkraggel at di.uoa.gr
Mon Oct 12 10:27:03 CEST 2015


Hello,

i am providing technical support for FRACTALS accelerator project and i
have received the issue below.
Any help would be appreciated!

-------------
I am facing a difficulty with the Comsos integration. I've set up an FiLab
instance to work as a proxy server between my application server (external
to FiLab) and the global Cosmos instance. After trying to connect from my
application server, I found out that "all the documented connections to
such global instance (except for ssh connections and the Cosmos portal)
must be done from a FI-LAB virtual machine; on the contrary, the firewall
will stop them". That's why I created a proxy server in FiLab.

I connect successfully using ssh to both the proxy server and the Cosmos
instance, but when I try to upload a file from the proxy to Cosmos, using
Hadoop, it asks for a token in the headers. The request I send is as shown
in the documentation
<http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/BigData_Analysis_-_Quick_Start_for_Programmers>
in
the "Upload some data to HDFS" section.

I have tried to get my token using the API explained here
<https://github.com/telefonicaid/fiware-cosmos/tree/master/cosmos-auth>,
using as <your_idm_username> and <your_idm_password> the credentials I use
to login to FiLab. The response I get is "The request you have made
requires authentication", with a status code 401 (Unauthorized).

Also, I have declared the https://cosmos.lab.fiware.org/ as my user's
application in FiLab, with the permissions as shown here
<http://fiware-idm.readthedocs.org/en/latest/user_guide.html>.

Can you you help me with that? Thanks in advance.
-------------

BR,
Aggelos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20151012/4271a649/attachment.html>


More information about the Fiware-tech-help mailing list

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