Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75279 > unrolled thread

login: optional

Started byJohn Bliss <bliss.john@gmail.com>
First post2014-07-27 11:11 -0700
Last post2014-07-31 06:30 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  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

#75279 — login: optional

FromJohn Bliss <bliss.john@gmail.com>
Date2014-07-27 11:11 -0700
Subjectlogin: optional
Message-ID<4fc4375b-0de6-40ec-85b5-f8f1dfa0b3c9@googlegroups.com>
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?

[toc] | [next] | [standalone]


#75402

FromKev Dwyer <kevin.p.dwyer@gmail.com>
Date2014-07-31 06:30 +0100
Message-ID<mailman.12456.1406784653.18130.python-list@python.org>
In reply to#75279
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


[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web