Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenID login on local development server for google app engine

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?

like image 600
Alex Jeffery Avatar asked Jan 08 '11 16:01

Alex Jeffery


People also ask

How do I use Google App Engine 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.

How do I run a local development 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.


1 Answers

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.

like image 60
Nick Johnson Avatar answered Oct 04 '22 18:10

Nick Johnson