Are you able to use open id to log into the local development server with google app engine sdk version 1.4.1 and python 2.5?
When I execute this
self.redirect(users.create_login_url(continue_url, None, openid_url))
I get redirected to http://localhost/_ah/login rather than the openid url. The openid url and continue url are valid.
My app.yaml looks like this
- url: /_ah/login_required
script: do_openid_login.py
- url: /users/(.*)
script: routers/user_router.py
login: required
If I browse to http://localhost/users/ I am also redirected to http://localhost/_ah/login rather than http://localhost/_ah/login_required
Is there a config issue or does openid not work locally?
Running your application locallySelect File > Open to open the project you want to run. Browse to the directory containing your project. Select Tools > Cloud Code > App Engine Run on a local App Engine Standard dev server.
Running the local development server ( dev_appserver.py )In the directory that contains your app. yaml configuration file, run the dev_appserver.py command. If Python 2 is not the default interpreter on your system, you need to run python2 dev_appserver.py to ensure the Python 2 interpreter is used.
No - in the SDK, openid logins are treated the same way as regular logins, using the same Users mockup. It's intended purely for testing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With