Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75402
| From | Kev Dwyer <kevin.p.dwyer@gmail.com> |
|---|---|
| Subject | Re: login: optional |
| Date | 2014-07-31 06:30 +0100 |
| References | <4fc4375b-0de6-40ec-85b5-f8f1dfa0b3c9@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12456.1406784653.18130.python-list@python.org> (permalink) |
John Bliss wrote:
> Noob here:
>
> Started new Python project via Google AppEngine which produced project
> files including:
>
> \app.yaml
>
> handlers:
> - url: /.*
> script: main.app
> secure: always
>
> Currently, navigating to project root forces me to authenticate with
> Google oAuth2 process. I'd like to turn that off so that I can navigate to
> project root without authenticating. Per:
>
>
https://developers.google.com/appengine/docs/python/config/appconfig#Python_app_yaml_Requiring_login_or_administrator_status
>
> ...I added:
>
> login: optional
>
> ...but that did not seem to make a difference. What am I doing wrong?
Hello,
I can't reproduce your problem on the dev server using this minimal setup:
app.yaml
application: test
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: main.app
secure: always
login: optional
main.py
import webapp2
class IndexHandler(webapp2.RequestHandler):
def get(self):
self.response.write('Hello world!')
app = webapp2.WSGIApplication([('/', IndexHandler)], debug=True)
Are you sure that there's nothing in your code or environment that could be
causing the authentication challenge?
Cheers,
Kev
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
login: optional John Bliss <bliss.john@gmail.com> - 2014-07-27 11:11 -0700 Re: login: optional Kev Dwyer <kevin.p.dwyer@gmail.com> - 2014-07-31 06:30 +0100
csiph-web