Thanks for all the help Ryan. I got everything working now. here's a first prototype based on your PyFxA branch:
https://github.com/tarekziade/fxakeys/blob/master/fxakeys/shareapp.py This prototype is a full client-side app that uses OAuth2 implicit grant - once connected to FxA, it interacts with a "Key Service" (fxa provider) where the user publishes app encryption key, The demo shows how an end-to-end encryption flow between two FxA users could work. (Of course the whole thing is based on the assumption that login inrto FxA will let us have kBr as we defined it.) The next piece I am adding is a dummy storage service and I'll have the full POC. Cheers Tarek On Thu, Jan 8, 2015 at 10:26 AM, Ryan Kelly <[email protected]> wrote: > > > On 8/01/2015 19:22, Tarek Ziade wrote: > >> Sorry I meant "Unkown Client" >> >> here's the full sample I am trying against your branch: >> http://tarek.pastebin.mozilla.org/8170247 >> > > The fxa.oauth.Client class takes the client secret as its second arg, so > you need to pass server_url by kwd like: > > oauth_client = OAuthClient(CLIENT_ID, server_url=OAUTH_SERVER) > > > You do also need canGrant=true in your client record, which I went ahead > and changed in the db for you. With that, this above script seems to run > ok for me. > > > Cheers, > > Ryan > > > On Thu, Jan 8, 2015 at 9:13 AM, Tarek Ziade <[email protected] >> <mailto:[email protected]>> wrote: >> >> >> >> On Wed, Jan 7, 2015 at 9:38 PM, Ryan Kelly <[email protected] >> <mailto:[email protected]>> wrote: >> >> >> This endpoint is also (soon to be, after branch merge) exposed >> in PyFxA if you want to play around with the flow: >> >> >> https://github.com/mozilla/PyFxA/blob/rfk/assertion-and- >> oauth-helpers/fxa/oauth.py#L118 >> >> >> I get an invalid response_type back from the server with this. >> >> Is this because my client_id has no implicit grant or something else ? >> >> I got one from https://oauth-stable.dev.lcip.org/console/clients >> (but that generates a secret too) >> >> >> >> >> >> >> >> Cheers, >> >> Ryan >> >> >> >>
_______________________________________________ Dev-fxacct mailing list [email protected] https://mail.mozilla.org/listinfo/dev-fxacct

