<div dir="ltr"><div>Nick, I don't have any real desire for the client, I am just interested in its existence. Could this client be extracted from the firefox-ios repo if Mozilla ever decides to write another iOS app?<br><br>> I expect another small library to consume the FxA client account state and to handle the token server interactions.<br><br></div><div>Zach Carter wrote two JS clients and Ryan Kelly is working on a Python client to handle this. Perhaps there is an opportunity to present a consistent(ish) API across the languages? <br><br>Zach's JS clients are embedded in the fxa-content-server [1][2]; I'd like to extract them into the fxa-relier-client [3] so the functionality is available to any JS based relier. I'm not sure where Ryan's repo is located, my Github search foo did not find anything obvious. <br><br>Shane<br><br>==================<br><br>[1] - <a href="https://github.com/mozilla/fxa-content-server/blob/master/app/scripts/lib/oauth-client.js">https://github.com/mozilla/fxa-content-server/blob/master/app/scripts/lib/oauth-client.js</a><br>[2] - <a href="https://github.com/mozilla/fxa-content-server/blob/master/app/scripts/lib/profile-client.js">https://github.com/mozilla/fxa-content-server/blob/master/app/scripts/lib/profile-client.js</a><br></div>[3] - <a href="https://github.com/mozilla/fxa-relier-client">https://github.com/mozilla/fxa-relier-client</a><br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 17, 2014 at 5:23 PM, Nicholas Alexander <span dir="ltr"><<a href="mailto:nalexander@mozilla.com" target="_blank">nalexander@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 dir="ltr">Hey!<br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Dec 17, 2014 at 8:46 AM, Shane Tomlinson <span dir="ltr"><<a href="mailto:stomlinson@mozilla.com" target="_blank">stomlinson@mozilla.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I opened up the firefox-ios repo today and was delighted to see the directories FxA and FxAClient. In FxAClient, there is a file called FxAClient.swift[1], written by rnewman. Who consumes this client, is it only the browser?<br></div></div></blockquote><div><br></div></span><div>At the moment, only the browser, and not even that yet. We're hoping to keep the FxA client pretty thin -- no connection to the browser, no connection to Sync.</div><div><br></div><div>My current vision for the FxA client is for it to maintain an abstraction of the Account State (equivalent to Desktop's `signedInUser.json`) and for it to handle the HTTP calls to advance that state through a login state machine. I have a PR in progress for this work; hopefully I can post by EOW.</div><div><br></div><div>I expect another small library to consume the FxA client account state and to handle the token server interactions.</div><div><br></div><div>It's not yet clear to me if the FxA client will handle the UI for signing up and/or in.</div><div><br></div><div>What's your desire for this client?</div><div><br></div><div>Nick</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr"><div><br></div>Shane<br><br><div>=======<br><br>[1] - <a href="https://github.com/mozilla/firefox-ios/blob/master/FxAClient/FxAClient.swift" target="_blank">https://github.com/mozilla/firefox-ios/blob/master/FxAClient/FxAClient.swift</a><br></div></div>
<br></span>_______________________________________________<br>
Dev-fxacct mailing list<br>
<a href="mailto:Dev-fxacct@mozilla.org" target="_blank">Dev-fxacct@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/dev-fxacct" target="_blank">https://mail.mozilla.org/listinfo/dev-fxacct</a><br>
<br></blockquote></div></div></div>
</blockquote></div><br></div>