Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'causing': 0.04; 'root': 0.05; 'dev': 0.07; 'currently,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'def': 0.12; 'appengine': 0.16; 'challenge?': 0.16; 'navigating': 0.16; 'optional': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reproduce': 0.16; 'subject:login': 0.16; 'wrote:': 0.18; 'app': 0.19; 'import': 0.22; 'header:User-Agent:1': 0.23; 'cheers,': 0.24; 'environment': 0.24; 'header:X-Complaints-To:1': 0.27; 'code': 0.31; 'forces': 0.31; 'class': 0.32; 'url:python': 0.33; 'minimal': 0.33; "i'd": 0.34; 'could': 0.34; 'problem': 0.35; "can't": 0.35; 'test': 0.35; 'google': 0.35; 'version:': 0.36; 'doing': 0.36; 'turn': 0.37; 'project': 0.37; 'server': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'new': 0.61; 'john': 0.61; 'here:': 0.62; 'header:Reply-To:1': 0.67; 'skip:w 30': 0.69; 'reply-to:no real name:2**0': 0.71; 'reply- to:addr:gmail.com': 0.80; 'bliss': 0.84; 'difference.': 0.84; 'url:config': 0.84; 'navigate': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Kev Dwyer Subject: Re: login: optional Date: Thu, 31 Jul 2014 06:30:39 +0100 References: <4fc4375b-0de6-40ec-85b5-f8f1dfa0b3c9@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: cpc5-hari13-2-0-cust222.20-2.cable.virginm.net Mail-Copies-To: kevin.p.dwyer@gmail.com User-Agent: KNode/4.7.2 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: kevin.p.dwyer@gmail.com List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 70 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1406784653 news.xs4all.nl 2831 [2001:888:2000:d::a6]:47234 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75402 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