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

Reply via email to