<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
<div class="moz-cite-prefix">Le 16/04/2015 02:09, Oleksandr Kyetov a
écrit :<br>
</div>
<blockquote
cite="mid:CA+GOB=mC8wJtXisc3HnaBH+kdAgy+4TmjicPc1tr9tKN7=6==w@mail.gmail.com"
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>
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 class="moz-txt-link-freetext" href="https://github.com/mozilla/fxa-oauth-client">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>
</body>
</html>