Moving from old Google to new Google OAuth

47 views
Skip to first unread message

Jed Christiansen

unread,
May 22, 2015, 4:06:46 AM5/22/15
to gae-sim...@googlegroups.com
Hey, everyone.

So I use gae-simpleauth on Seed-DB (http://www.seed-db.com), but still use the Google OAuth protocols from ~2013 era.  (Doh!)

I'm finally updating to the new 0.1.5 version, but it's not working and I don't know what I have mis-configured.  What I've done so far:
- update all simpleauth code
- create OAuth credentials here: https://console.developers.google.com
  - also added Javascript origins
  - (which created automatic Redirect URIs)
  - (which I edited to match the previous Redirect URIs for simpleauth)
- added new client/secret in secrets.py
- changed scope to 'profile email'

But I'm getting the following error:

  File "lib/simpleauth/handler.py", line 187, in _auth_callback
    self._on_signin(user_data, auth_info, provider, extra=extra)
TypeError: _on_signin() got an unexpected keyword argument 'extra'

Anyone have an idea what I'm doing wrong?  Alex?

Cheers,
Jed

--
--------------------------------------------
Jed D. Christiansen
+44 (0) 796 358 3663
http://about.me/jedc

alex

unread,
May 22, 2015, 4:47:05 AM5/22/15
to Jed Christiansen, gae-sim...@googlegroups.com
Hey Jed!

Yeah, that part's been changed a little, which breaks old versions unfortunately.
It's easy to fix, though. All you have to do is to add extra=None keyword arg to you _on_signin method.

See how it looks like in the example _on_signin:

--
You received this message because you are subscribed to the Google Groups "SimpleAuth for GAE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gae-simpleaut...@googlegroups.com.
Visit this group at http://groups.google.com/group/gae-simpleauth.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages