Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to test Google App Engine OpenID authentication on development Server?

I'm trying OpenID support for Google App Engine on a small project i have on my machine but when i call:

users.create_login_url(federated_identity = provider_url)

i get this error:

google_appengine/google/appengine/api/user_service_pb.py", line 178, in ByteSize
    n += self.lengthString(len(self.destination_url_))
TypeError: object of type 'NoneType' has no len()

provider_url is https://www.google.com/accounts/o8/id

any clue?

like image 788
systempuntoout Avatar asked Aug 15 '10 22:08

systempuntoout


People also ask

How are users authenticated to the Google network?

Identity Platform provides a drop-in, customizable identity and authentication service for user sign-up and sign-in. Identity Platform supports multiple authentication methods (SAML, OIDC, email/password, social, phone, and custom auth) to provide flexible integration options for any identity solution.


1 Answers

You should normally pass a dest_url parameter to create_login_url, unless you're certain that there is a "current request" whose url you want to use instead. Apparently, the latter condition does not obtain, so the destination url stays None, which causes the problem you're observing. Passing an explicit dest_url should fix it.

like image 167
Alex Martelli Avatar answered Oct 23 '22 03:10

Alex Martelli