I’ve been trying to follow this turorial in order to implement openID authentication on an app, but I am completely lost. No matter what I tried, I kept getting this error:
Fatal error when loading application configuration:
Invalid object:
threadsafe cannot be enabled with CGI handler: main.py
Does anyone know how to implement openID logins?
This has nothing to do with OpenID.
If you use the new Concurrent Requests (threadsafe=true) mode with python 2.7 in Google App Engine you have to make sure that you specify a WSGI application (e.g. myapp.app) instead of a CGI handler (e.g. myapp.py) in app.yaml (see here for more details):
Looks something like this:
app.yaml:
main.py:
Alternatively you can also disable concurrent requests (threadsafe=false) and use your old CGI handler.