Bug #865439 - Authentication for Client API

https://bugzilla.mozilla.org/show_bug.cgi?id=865439