<div dir="ltr">+ mozilla.dev.media guys<div><br></div><div>There is pretty detail description of the problem in previous e-mail. I would be appreciated if you take a look</div><div><br>Best regards,</div><div>Alex K.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 16, 2015 at 10:16 AM, Oleksandr Kyetov <span dir="ltr"><<a href="mailto:oleksandr.kyetov@gmail.com" target="_blank">oleksandr.kyetov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I am working on the project which involves synchronization between Loop Server API and Firefox Account</div><div><br></div><div>What I have:<br></div><div>1. I have Firefox Account with valid credentials</div><div>2. I able to use Loop Server API</div><div><br></div><div>Here is drawing of what I need:</div><div><a href="https://docs.google.com/drawings/d/1s6F0iKSWGLN8FTNsuMvB0ebNqbofIsGcuaLEi4BINCY/edit?usp=sharing" target="_blank">https://docs.google.com/drawings/d/1s6F0iKSWGLN8FTNsuMvB0ebNqbofIsGcuaLEi4BINCY/edit?usp=sharing</a><br></div><div><br></div><div>Here is what I need in words:</div><div>1. Log in to Firefox Account via Firefox</div><div>2. Call POST /registration Loop Server endpoint using user from step 1 (<<< Here is the biggest problem. How to call /registration endpoint using Firefox Account credentials?)</div><div>3. Call POST /call-url Loop Server endpoint with hawk-session-token derived from response in 2 step</div><div>4. Give generated call URL to the client</div><div>5. Make sure Firefox Account user sees generated URL in the Firefox (<<< another problem here. How to notify Firefox Account about call URL generated)</div><div><br></div><div>So, it should look like:</div><div>1. Client click a button</div><div>2. Server generates a call URL on server side using support user Firefox Account credentials</div><div>3. Server passes call URL back to client</div><div>4. Server notifies support user Firefox Account about client generated call URL</div><div><br></div><div>I have read a load of documentation, including:<br></div><div><a href="https://wiki.mozilla.org/Identity/Firefox_Accounts" target="_blank">https://wiki.mozilla.org/Identity/Firefox_Accounts</a><br></div><div><a href="https://docs.services.mozilla.com/loop/apis.html#post-call-url" target="_blank">https://docs.services.mozilla.com/loop/apis.html#post-call-url</a><br></div><div><a href="https://github.com/mozilla-services/loop-server" target="_blank">https://github.com/mozilla-services/loop-server</a><br></div><div>and did not find solution for that :(<br></div><div><br></div><div>According to Loop Server API, it is possible to register with Firefox Account. For that I need to have Firefox Account assertions, but I can't get those either</div><div><h4 style="font-family:OpenSansLight,sans-serif;font-weight:normal;color:rgb(33,34,36);margin:30px 0px 10px;padding:5px 0px;font-size:18.7199993133545px"><a href="https://docs.services.mozilla.com/loop/apis.html#id17" style="color:rgb(0,149,221);text-decoration:none;line-height:20.5919990539551px" target="_blank">POST /registration</a><a href="https://docs.services.mozilla.com/loop/apis.html#post-registration" title="Permalink to this headline" style="color:rgb(0,149,221);text-decoration:none;line-height:20.5919990539551px" target="_blank"></a></h4><blockquote style="color:rgb(62,67,73);font-family:OpenSans,sans-serif;font-size:14.3999996185303px"><p style="line-height:1.5em">Associates a Simple Push Endpoint (URL) with a user. Always return an hawk session token in the <cite>Hawk-Session-Token</cite> header.</p><p style="line-height:1.5em"><strong>May require authentication</strong></p><p style="line-height:1.5em">You don’t <em>need</em> to be authenticated to register. In case you don’t register with a Firefox Accounts assertion or a valid hawk session, you’ll be given an hawk session token and be connected as an anonymous user.</p><p style="line-height:1.5em">This hawk session token should be derived by the client and used for subsequent requests.</p><p style="line-height:1.5em">You can currently authenticate by sending a valid Firefox Accounts assertion or a valid Hawk session.</p></blockquote></div><div><br></div><div>P.S. Thank you very much for help. If I put a wrong people in mailing list, help me to find right person/mailing group</div><div><div><div><br></div><div><div>Best regards,</div><div>Alex K.</div></div></div></div></div>
</blockquote></div><br></div>