App Engine Dev server error: "Current logged in user ... is not authorized to view this page."

148 views
Skip to first unread message

Alex Kerr

unread,
Nov 30, 2015, 3:20:34 PM11/30/15
to Google App Engine
Hi,

When I try to access a PHP or HTML file from my project in my local browser, when running the dev server (PHP SDK), I just get the message "Current logged in user [my email address] is not authorized to view this page.". I get this message regardless of whether I am logged into the correct google account or not. If I upload to App Engine, it works fine if I am logged in, or presents the standard Google login page then works fine when I login.

I do have "login: admin" set for HTML and PHP files for my app.yaml, but this should not stop things working locally...

Any ideas please?

Many thanks,
Alex

Alex Martelli

unread,
Nov 30, 2015, 3:35:04 PM11/30/15
to google-a...@googlegroups.com
login: admin does, and should, block access unless you're logged in *as admin* in the fake login page dev_appserver presents. Try it e.g on a Chrome incognito window, and make sure to check the checkbox to "login as admin" -- if it works, then just clear cookies to do the same from normal non-incognito windows.


Alex
 

Any ideas please?

Many thanks,
Alex

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/980e29d9-b5e7-4c8c-9ef7-8c292905d563%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex Kerr

unread,
Nov 30, 2015, 3:41:13 PM11/30/15
to Google App Engine
Ah that works fine once I cleared cookies, thanks. I wasn't getting any login just the error message...
Thank you.

Alex Martelli

unread,
Nov 30, 2015, 4:05:27 PM11/30/15
to google-a...@googlegroups.com
On Mon, Nov 30, 2015 at 12:41 PM, Alex Kerr <ajc...@gmail.com> wrote:
Ah that works fine once I cleared cookies, thanks. I wasn't getting any login just the error message...
Thank you.

You're welcome! Your cookies were telling dev_appserver that you were fake-logged-in with a non-admin fake userid, so it correctly denied you access to `login: admin` URLs.


Alex
 
Reply all
Reply to author
Forward
0 new messages