My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 4111: Datastore Admin fails to load when application is using (experimental) Federated Login.
60 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Aug 4


Sign in to add a comment
 
Reported by nix...@gmail.com, Nov 22, 2010
Datastore Admin fails to load when application is using Federated Login.

When the authentication setting is switched to Google Account API, it then works.

Here is the error message....


Error: Not Found

The requested URL /_ah/login_required?continue=http://del-all.latest.spiral-plagiarism.appspot.com/_ah/datastore_admin/?app_id=spiral-plagiarism&kind=...&kind=_AE_MR_MapreduceState&kind=_AE_MR_ShardState&kind=_ah_SESSION&namespace= was not found on this server.


Thanks,

Jan 26, 2011
#1 sly...@google.com
(No comment was entered for this change.)
Status: Acknowledged
Labels: Component-Adminconsole-DatastoreAdmin
Jan 26, 2011
#2 sly...@google.com
 Issue 4411  has been merged into this issue.
Mar 3, 2011
#3 tchan-it...@gtempaccount.com
The 404 initially reported is probably because you need to add a handler for /_ah/login_required. Something like this:

handlers:
- url: /_ah/login_required
  script: login_required.py

and this:

#!/usr/bin/env python

from google.appengine.ext import webapp
from google.appengine.api import users
import google.appengine.ext.webapp.util

class LoginRequiredHandler(webapp.RequestHandler):
	def get(self):
		continue_url, = self.request.get('continue',allow_multiple=True)
		self.redirect(users.create_login_url())

def main():
	application = webapp.WSGIApplication([('/_ah/login_required', LoginRequiredHandler),], debug=True)
	webapp.util.run_wsgi_app(application)

if __name__ == '__main__':
	main()

There is a second problem, which is what might be  issue 4411 :

Depending on whether you access via HTTP or HTTPS, the <iframe> uses one of two URLs:
  http://1.APP_ID.appspot.com/_ah/datastore_admin/?app_id=APP_ID
  https://1-dot-latest-dot-APP_ID.appspot.com/_ah/datastore_admin/?app_id=APP_ID
Both of these ought to display a login page, but in Safari 5.0.3/Mac OS 10.6.6, they're both blank.

The workaround is to load these URLs directly, which allows you to log in.

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-gb) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4
Sep 28, 2011
Project Member #4 pro...@google.com
 Issue 5864  has been merged into this issue.
Sep 28, 2011
#5 nikla...@gmail.com
Actions taken: Added login_required.py (why must I) deployed and tried to trload the admin page and still

Error: Not Found
The requested URL /_ah/login_required?continue=http://ah-builtin-python-bundle-dot-latest-dot-classifiedsmarket.appspot.com/_ah/datastore_admin/ was not found on this server.

I'm fairly certain it has to do with federated login isince my other app which doesn't use federated login doesn't have this issue. Please can we have a workaround or a fix?

Thank you
Nov 6, 2011
#6 k...@koma.be
same here, using GAE/J
Jan 3, 2012
#7 bquin...@google.com
(No comment was entered for this change.)
Labels: log-4111
Jan 3, 2012
#8 bquin...@google.com
(No comment was entered for this change.)
Status: Started
Jan 3, 2012
#9 bquin...@google.com
(No comment was entered for this change.)
Labels: -log-4111
Mar 4, 2012
#10 techtonik@gmail.com
I am facing endless proposal to choose account for login after enabling Datastore Admin.
May 1, 2012
#11 abdelkri...@gmail.com
we have moved to federated login and now we can't access to the administration log anymore. 
we use app engine v1.6.2 and app.yaml enables the datastore_admin
Aug 7, 2013
#12 cordy0824@gmail.com
how to get 
Aug 7, 2013
#13 jimmyka...@gmail.com
View the source of the document and copy the iframe url and paste it in another tab in your browser. 

Aug 7, 2013
#14 slpe...@gmail.com
Jimmy,

Responding because I've seen this posted before as a work-around, but it doesn't work. Maybe it's Java or maybe it's my app, but the only way I've ever been able to access the datastore admin page was to switch off federated logins. I've tried the iframe link: https://ah-builtin-python-bundle-dot-myapp.appspot.com/_ah/datastore_admin/?app_id=s~myapp&adminconsolecustompage
and I've tried replacing the "-dot-" with an actual dot. I get that federated login is experimental, but this has been busted for years. Having to do late night maintenance where I turn off federated login just to do a back up seems a little low rent to me.
Aug 7, 2013
#16 slpe...@gmail.com
Jimmy,
That's exactly what I tried. It doesn't work. I get "file not found." Sorry for spam, but I want to make sure folks realize this work around doesn't work for everyone.
Aug 4, 2014
Project Member #17 jgras...@google.com
The fix for this issue is available in Version 1.6.3 as of February 28, 2012

This update is part of our efforts to update the external issue trackers. For more context see https://groups.google.com/d/msg/google-appengine/GNn9nob9Ey0/s0ueP48i4TcJ
Status: Fixed
Labels: log-5260202
Sign in to add a comment

Powered by Google Project Hosting