<div dir="ltr">Thank you a lot guys,<div><br></div><div>Remy, seems that building <span style="font-size:12.8000001907349px">a BrowserID assertion is exactly what I need. I will take closer look at </span><a href="https://github.com/mozilla/fxa-oauth-client" target="_blank" style="font-size:12.8000001907349px">https://github.com/mozilla/fxa-oauth-client</a></div><div><br></div><div>Have nice day,</div><div>Alex K.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 16, 2015 at 11:06 AM, Rémy Hubscher <span dir="ltr"><<a href="mailto:rhubscher@mozilla.com" target="_blank">rhubscher@mozilla.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi,<span class=""><br>
    <br>
    <div>Le 16/04/2015 02:09, Oleksandr Kyetov a
      écrit :<br>
    </div>
    <blockquote type="cite">Just give me please any hint on how can I authenticate
      to the Loop Server with existing Firefox Account from NodeJS
      without usage of Firefox Browser?</blockquote>
    <br></span>
    In order to connect using Firefox Account to loop, you will need to
    pass a Firefox Account valid Bearer Token.<br>
    <br>
    In order to get this Bearer token, you will have to authenticate on
    the Firefox Oauth server.<br>
    <br>
    You have currently two ways to do that.<br>
    <ul>
      <li>Using the browser page and the web flow</li>
      <li>Building a BrowserID assertion and then trade it for a Bearer
        token.</li>
    </ul>
    <p>You can have an example of the second flow here:
      <a href="https://github.com/mozilla/fxa-oauth-client" target="_blank">https://github.com/mozilla/fxa-oauth-client</a><br>
    </p>
    <p>For your experiment, you can also build a Bearer token once using
      the webflow and using it directly without having to regain it each
      time.<br>
    </p>
    <p>Have fun,<br>
    </p>
    <p>Rémy<br>
    </p>
  </div>

</blockquote></div><br></div>