Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-5555

FIWARE.Request.Tech.Data.BigData-Analysis.How to connect existing cosmos user to FIWARE cloud authorization?

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      Hello,
      Medbravo has use medbravouser on cosmos default instance. We also has
      user fiware@medbravo.org on fiware cloud.
      To enable http access I need OATH2 token - which is granted only from
      cosmos cloud. Is it possible to to allow authorization for medbravouser to
      be made from account fiware@medbravo.org? Or should I use on cosmos account
      fiware? ( I have already reported that I get access to that account).
      Best,
      Kuba


      <%2B34%20618%2045%2032%2014>
      Jakub Jurkiewicz, Ph.D
      FIWARE Data Scientist

      www.medbravo.org

      Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
      Please, send your messages using the new domain (Fiware-fiche-coaching@lists.fiware.org) instead of the old one.
      _______________________________________________
      Fiware-fiche-coaching mailing list
      Fiware-fiche-coaching@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-fiche-coaching
      [Created via e-mail received from: Jakub Jurkiewicz <jakub@medbravo.org>]

      1. text.html
        15 kB
        FW External User

        Issue Links

          Activity

          Hide
          flegall Franck Le Gall added a comment -

          Hello Francisco,

          Do you have answers for that company ?

          Many thanks
          Franck

          Show
          flegall Franck Le Gall added a comment - Hello Francisco, Do you have answers for that company ? Many thanks Franck
          Hide
          fw.ext.user FW External User added a comment -

          Hi Kuba,

          If I¹ve understood well, the problem is your FIWARE Lab credentials (the
          ones you use for retrieving the OAuth2 token) are not linked to your
          Cosmos user. I.e. your FIWARE Lab credentials are based on the
          "fiware@medbravo.org" email, and the Cosmos account is ³medbravouser²; in
          that case, you are right, the authentication will fail since the
          authentication mechanism (1) will take the token and will retrieve the
          "fiware@medbravo.org" email, and (2) then the ³fiware" Cosmos account
          (i.e. the substring until the Œ@Œ) will be involved in the authorization.

          I guess this is happening because the medbravouser account was created at
          the very begining of the project, when no provisioning portal was
          available. In this case, there are two options:

          • If you control the ³fiware² user then all the data could be moved there
            from the ³medbravo² account. Then the ³fiware² account will start working
            with OAuth2.
          • You can register a new email in FIWARE Lab, let¹s say
            ³medbravouser@medbravo.org², and the ³medbravouser² account will start
            working with OAuth2.

          The second one option is the preferred for me.

          In addition, since you requested an increment of the quota, I¹ll wait
          until you tell me which Cosmos account will finally be used.

          Regards,
          Francisco

          El 7/1/16 9:41, "Franck Le Gall (JIRA)" <jira-help-desk@fi-ware.org>

          ________________________________

          Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

          The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.

          Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição
          Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
          Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one.
          _______________________________________________
          Fiware-tech-help mailing list
          Fiware-tech-help@lists.fiware.org
          https://lists.fiware.org/listinfo/fiware-tech-help

          Show
          fw.ext.user FW External User added a comment - Hi Kuba, If I¹ve understood well, the problem is your FIWARE Lab credentials (the ones you use for retrieving the OAuth2 token) are not linked to your Cosmos user. I.e. your FIWARE Lab credentials are based on the "fiware@medbravo.org" email, and the Cosmos account is ³medbravouser²; in that case, you are right, the authentication will fail since the authentication mechanism (1) will take the token and will retrieve the "fiware@medbravo.org" email, and (2) then the ³fiware" Cosmos account (i.e. the substring until the Œ@Œ) will be involved in the authorization. I guess this is happening because the medbravouser account was created at the very begining of the project, when no provisioning portal was available. In this case, there are two options: If you control the ³fiware² user then all the data could be moved there from the ³medbravo² account. Then the ³fiware² account will start working with OAuth2. You can register a new email in FIWARE Lab, let¹s say ³medbravouser@medbravo.org², and the ³medbravouser² account will start working with OAuth2. The second one option is the preferred for me. In addition, since you requested an increment of the quota, I¹ll wait until you tell me which Cosmos account will finally be used. Regards, Francisco El 7/1/16 9:41, "Franck Le Gall (JIRA)" <jira-help-desk@fi-ware.org> ________________________________ Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it. Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost. Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one. _______________________________________________ Fiware-tech-help mailing list Fiware-tech-help@lists.fiware.org https://lists.fiware.org/listinfo/fiware-tech-help
          Hide
          flegall Franck Le Gall added a comment -

          Can we close that ticket ?

          Quota request is available here: https://jira.fiware.org/browse/HELP-5605

          kind regards

          Show
          flegall Franck Le Gall added a comment - Can we close that ticket ? Quota request is available here: https://jira.fiware.org/browse/HELP-5605 kind regards
          Hide
          fw.ext.user FW External User added a comment -

          Hi Franck,

          Still waiting for more feedback from the user.

          Regards,
          Francisco

          El 13/1/16 15:15, "Franck Le Gall (JIRA)" <jira-help-desk@fi-ware.org>

          ________________________________

          Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

          The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.

          Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição

          Show
          fw.ext.user FW External User added a comment - Hi Franck, Still waiting for more feedback from the user. Regards, Francisco El 13/1/16 15:15, "Franck Le Gall (JIRA)" <jira-help-desk@fi-ware.org> ________________________________ Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it. Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição
          Hide
          fw.ext.user FW External User added a comment -

          Hello Francisco,
          I have finally manage to check that I succeded with option 2 - user:
          medbravouser on cosmos. SO please increase quota for this user.
          However I have following issues.

          kura@ckan2:/mnt/xmlCTAs$ curl -X GET "
          http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser?op=LISTSTATUS&user.name=medbravouser"
          -H "X-Auth-Token: xxxx"
          curl: (56) Recv failure: Connection reset by peer
          So I cannot list directory

          kura@ckan2:/mnt/xmlCTAs$ curl -X GET "
          http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser?op=GETCONTENTSUMMARY&user.name=medbravouser"
          -H "X-Auth-Token: xxxx"
          curl: (56) Recv failure: Connection reset by peer
          the same

          kura@ckan2:/mnt/xmlCTAs$ curl -X GET "
          http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser/tagged.sf?op=OPEN&user.name=medbravouser"
          -H "X-Auth-Token: xxxx" > tagged.sf
          % Total % Received % Xferd Average Speed Time Time Time
          Current
          Dload Upload Total Spent Left
          Speed
          100 274 100 274 0 0 33 0 0:00:08 0:00:08 -::-
          68
          kura@ckan2:/mnt/xmlCTAs$ less tagged.sf
          Error: Parse Error
          at Error (native)
          at Socket.socketOnData (_http_client.js:317:20)
          at Socket.emit (events.js:107:17)
          at readableAddChunk (_stream_readable.js:163:16)
          at Socket.Readable.push (_stream_readable.js:126:10)
          at TCP.onread (net.js:538:20)
          So getting file /user/medbravouser/tagged.sf fails.

          But with the same auth token
          curl -X GET "
          http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser/ala?op=OPEN&user.name=medbravouser"
          -H "X-Auth-Token: xxx"
          returns:
          ala alal alla

          which is content of 1/user/medbravouser/ala.

          Can you check my errors? And I am waiting for bigger quota.
          Best,
          Kuba

          On Mon, Jan 11, 2016 at 10:05 AM, FRANCISCO ROMERO BUENO <


          <%2B34%20618%2045%2032%2014>
          Jakub Jurkiewicz, Ph.D
          FIWARE Data Scientist

          www.medbravo.org

          Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
          Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one.
          _______________________________________________
          Fiware-tech-help mailing list
          Fiware-tech-help@lists.fiware.org
          https://lists.fiware.org/listinfo/fiware-tech-help

          Show
          fw.ext.user FW External User added a comment - Hello Francisco, I have finally manage to check that I succeded with option 2 - user: medbravouser on cosmos. SO please increase quota for this user. However I have following issues. kura@ckan2:/mnt/xmlCTAs$ curl -X GET " http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser?op=LISTSTATUS&user.name=medbravouser " -H "X-Auth-Token: xxxx" curl: (56) Recv failure: Connection reset by peer So I cannot list directory kura@ckan2:/mnt/xmlCTAs$ curl -X GET " http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser?op=GETCONTENTSUMMARY&user.name=medbravouser " -H "X-Auth-Token: xxxx" curl: (56) Recv failure: Connection reset by peer the same kura@ckan2:/mnt/xmlCTAs$ curl -X GET " http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser/tagged.sf?op=OPEN&user.name=medbravouser " -H "X-Auth-Token: xxxx" > tagged.sf % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 274 100 274 0 0 33 0 0:00:08 0:00:08 - : : - 68 kura@ckan2:/mnt/xmlCTAs$ less tagged.sf Error: Parse Error at Error (native) at Socket.socketOnData (_http_client.js:317:20) at Socket.emit (events.js:107:17) at readableAddChunk (_stream_readable.js:163:16) at Socket.Readable.push (_stream_readable.js:126:10) at TCP.onread (net.js:538:20) So getting file /user/medbravouser/tagged.sf fails. But with the same auth token curl -X GET " http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser/ala?op=OPEN&user.name=medbravouser " -H "X-Auth-Token: xxx" returns: ala alal alla which is content of 1/user/medbravouser/ala. Can you check my errors? And I am waiting for bigger quota. Best, Kuba On Mon, Jan 11, 2016 at 10:05 AM, FRANCISCO ROMERO BUENO < – <%2B34%20618%2045%2032%2014> Jakub Jurkiewicz, Ph.D FIWARE Data Scientist www.medbravo.org Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost. Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one. _______________________________________________ Fiware-tech-help mailing list Fiware-tech-help@lists.fiware.org https://lists.fiware.org/listinfo/fiware-tech-help
          Hide
          fw.ext.user FW External User added a comment -

          Hi Kuba,

          Your quota for the user medbravouser has been increased up to 10 GB.

          Regarding the errors you are experiencing through the API, please, send me in a private email your token (it is the only way, once I finish the tests you can generate a new one which will invalidate the current one) and I’ll check what is happening.

          Best regards,
          Francisco

          De: Jakub Jurkiewicz <jakub@medbravo.org<jakub@medbravo.org>>
          Fecha: miércoles, 13 de enero de 2016, 16:00
          Para: Francisco Romero Bueno <francisco.romerobueno@telefonica.com<francisco.romerobueno@telefonica.com>>
          CC: "fiware-tech-help@lists.fi-ware.org<fiware-tech-help@lists.fi-ware.org>" <fiware-tech-help@lists.fi-ware.org<fiware-tech-help@lists.fi-ware.org>>, Aurelia Bustos-Moreno <aurelia@medbravo.org<aurelia@medbravo.org>>
          Asunto: Re: [FI-WARE-JIRA] (HELP-5555) [Fiware-fiche-coaching] How to connect existing cosmos user to FIWARE cloud authorization?

          Hello Francisco,
          I have finally manage to check that I succeded with option 2 - user: medbravouser on cosmos. SO please increase quota for this user.
          However I have following issues.

          kura@ckan2:/mnt/xmlCTAs$ curl -X GET "http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser?op=LISTSTATUS&user.name=medbravouser" -H "X-Auth-Token: xxxx"
          curl: (56) Recv failure: Connection reset by peer
          So I cannot list directory

          kura@ckan2:/mnt/xmlCTAs$ curl -X GET "http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser?op=GETCONTENTSUMMARY&user.name=medbravouser" -H "X-Auth-Token: xxxx"
          curl: (56) Recv failure: Connection reset by peer
          the same

          kura@ckan2:/mnt/xmlCTAs$ curl -X GET "http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser/tagged.sf?op=OPEN&user.name=medbravouser" -H "X-Auth-Token: xxxx" > tagged.sf
          % Total % Received % Xferd Average Speed Time Time Time Current
          Dload Upload Total Spent Left Speed
          100 274 100 274 0 0 33 0 0:00:08 0:00:08 -::- 68
          kura@ckan2:/mnt/xmlCTAs$ less tagged.sf Error: Parse Error at Error (native)
          at Socket.socketOnData (_http_client.js:317:20)
          at Socket.emit (events.js:107:17)
          at readableAddChunk (_stream_readable.js:163:16)
          at Socket.Readable.push (_stream_readable.js:126:10)
          at TCP.onread (net.js:538:20)
          So getting file /user/medbravouser/tagged.sf fails.

          But with the same auth token
          curl -X GET "http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser/ala?op=OPEN&user.name=medbravouser" -H "X-Auth-Token: xxx"
          returns:
          ala alal alla

          which is content of 1/user/medbravouser/ala.

          Can you check my errors? And I am waiting for bigger quota.
          Best,
          Kuba

          On Mon, Jan 11, 2016 at 10:05 AM, FRANCISCO ROMERO BUENO <francisco.romerobueno@telefonica.com<francisco.romerobueno@telefonica.com>> wrote:
          Hi Kuba,

          If I¹ve understood well, the problem is your FIWARE Lab credentials (the
          ones you use for retrieving the OAuth2 token) are not linked to your
          Cosmos user. I.e. your FIWARE Lab credentials are based on the
          "fiware@medbravo.org<fiware@medbravo.org>" email, and the Cosmos account is ³medbravouser²; in
          that case, you are right, the authentication will fail since the
          authentication mechanism (1) will take the token and will retrieve the
          "fiware@medbravo.org<fiware@medbravo.org>" email, and (2) then the ³fiware" Cosmos account
          (i.e. the substring until the Œ@Œ) will be involved in the authorization.

          I guess this is happening because the medbravouser account was created at
          the very begining of the project, when no provisioning portal was
          available. In this case, there are two options:

          • If you control the ³fiware² user then all the data could be moved there
            from the ³medbravo² account. Then the ³fiware² account will start working
            with OAuth2.
          • You can register a new email in FIWARE Lab, let¹s say
            ³medbravouser@medbravo.org<medbravouser@medbravo.org>², and the ³medbravouser² account will start
            working with OAuth2.

          The second one option is the preferred for me.

          In addition, since you requested an increment of the quota, I¹ll wait
          until you tell me which Cosmos account will finally be used.

          Regards,
          Francisco

          El 7/1/16 9:41, "Franck Le Gall (JIRA)" <jira-help-desk@fi-ware.org<jira-help-desk@fi-ware.org>>

          ________________________________

          Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

          The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.

          Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição


          https://docs.google.com/uc?export=download&id=0B8O55AP05MC-ZElISjhjR0dxcGs&revid=0B8O55AP05MC-anc4NUh0bktCcGwzaTRObWNTZ2hvTlNneEtBPQ<tel:%2B34%20618%2045%2032%2014>
          Jakub Jurkiewicz, Ph.D
          FIWARE Data Scientist

          www.medbravo.org<http://www.medbravo.org/>

          ________________________________

          Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

          The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.

          Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição

          Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
          Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one.
          _______________________________________________
          Fiware-tech-help mailing list
          Fiware-tech-help@lists.fiware.org
          https://lists.fiware.org/listinfo/fiware-tech-help

          Show
          fw.ext.user FW External User added a comment - Hi Kuba, Your quota for the user medbravouser has been increased up to 10 GB. Regarding the errors you are experiencing through the API, please, send me in a private email your token (it is the only way, once I finish the tests you can generate a new one which will invalidate the current one) and I’ll check what is happening. Best regards, Francisco De: Jakub Jurkiewicz <jakub@medbravo.org< jakub@medbravo.org >> Fecha: miércoles, 13 de enero de 2016, 16:00 Para: Francisco Romero Bueno <francisco.romerobueno@telefonica.com< francisco.romerobueno@telefonica.com >> CC: "fiware-tech-help@lists.fi-ware.org< fiware-tech-help@lists.fi-ware.org >" <fiware-tech-help@lists.fi-ware.org< fiware-tech-help@lists.fi-ware.org >>, Aurelia Bustos-Moreno <aurelia@medbravo.org< aurelia@medbravo.org >> Asunto: Re: [FI-WARE-JIRA] ( HELP-5555 ) [Fiware-fiche-coaching] How to connect existing cosmos user to FIWARE cloud authorization? Hello Francisco, I have finally manage to check that I succeded with option 2 - user: medbravouser on cosmos. SO please increase quota for this user. However I have following issues. kura@ckan2:/mnt/xmlCTAs$ curl -X GET "http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser?op=LISTSTATUS&user.name=medbravouser" -H "X-Auth-Token: xxxx" curl: (56) Recv failure: Connection reset by peer So I cannot list directory kura@ckan2:/mnt/xmlCTAs$ curl -X GET "http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser?op=GETCONTENTSUMMARY&user.name=medbravouser" -H "X-Auth-Token: xxxx" curl: (56) Recv failure: Connection reset by peer the same kura@ckan2:/mnt/xmlCTAs$ curl -X GET "http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser/tagged.sf?op=OPEN&user.name=medbravouser" -H "X-Auth-Token: xxxx" > tagged.sf % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 274 100 274 0 0 33 0 0:00:08 0:00:08 - : : - 68 kura@ckan2:/mnt/xmlCTAs$ less tagged.sf Error: Parse Error at Error (native) at Socket.socketOnData (_http_client.js:317:20) at Socket.emit (events.js:107:17) at readableAddChunk (_stream_readable.js:163:16) at Socket.Readable.push (_stream_readable.js:126:10) at TCP.onread (net.js:538:20) So getting file /user/medbravouser/tagged.sf fails. But with the same auth token curl -X GET "http://cosmos.lab.fiware.org:14000/webhdfs/v1/user/medbravouser/ala?op=OPEN&user.name=medbravouser" -H "X-Auth-Token: xxx" returns: ala alal alla which is content of 1/user/medbravouser/ala. Can you check my errors? And I am waiting for bigger quota. Best, Kuba On Mon, Jan 11, 2016 at 10:05 AM, FRANCISCO ROMERO BUENO <francisco.romerobueno@telefonica.com< francisco.romerobueno@telefonica.com >> wrote: Hi Kuba, If I¹ve understood well, the problem is your FIWARE Lab credentials (the ones you use for retrieving the OAuth2 token) are not linked to your Cosmos user. I.e. your FIWARE Lab credentials are based on the "fiware@medbravo.org< fiware@medbravo.org >" email, and the Cosmos account is ³medbravouser²; in that case, you are right, the authentication will fail since the authentication mechanism (1) will take the token and will retrieve the "fiware@medbravo.org< fiware@medbravo.org >" email, and (2) then the ³fiware" Cosmos account (i.e. the substring until the Œ@Œ) will be involved in the authorization. I guess this is happening because the medbravouser account was created at the very begining of the project, when no provisioning portal was available. In this case, there are two options: If you control the ³fiware² user then all the data could be moved there from the ³medbravo² account. Then the ³fiware² account will start working with OAuth2. You can register a new email in FIWARE Lab, let¹s say ³medbravouser@medbravo.org< medbravouser@medbravo.org >², and the ³medbravouser² account will start working with OAuth2. The second one option is the preferred for me. In addition, since you requested an increment of the quota, I¹ll wait until you tell me which Cosmos account will finally be used. Regards, Francisco El 7/1/16 9:41, "Franck Le Gall (JIRA)" <jira-help-desk@fi-ware.org< jira-help-desk@fi-ware.org >> ________________________________ Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it. Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição – https://docs.google.com/uc?export=download&id=0B8O55AP05MC-ZElISjhjR0dxcGs&revid=0B8O55AP05MC-anc4NUh0bktCcGwzaTRObWNTZ2hvTlNneEtBPQ <tel:%2B34%20618%2045%2032%2014> Jakub Jurkiewicz, Ph.D FIWARE Data Scientist www.medbravo.org< http://www.medbravo.org/ > ________________________________ Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it. Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost. Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one. _______________________________________________ Fiware-tech-help mailing list Fiware-tech-help@lists.fiware.org https://lists.fiware.org/listinfo/fiware-tech-help

            People

            • Assignee:
              frb Francisco Romero
              Reporter:
              fw.ext.user FW External User
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: