Hi Aakash, Unfortunately, no, the closest one would be the login:required with a Google Apps domain, but since you have Users in your datastore....
The next best thing would be to have a snippet inside your handler checking who the user is and redirecting to the proper place based on that. On Tuesday, May 19, 2015 at 1:11:59 PM UTC-4, Aakash Bapna wrote: > > Yes, I do have "User" entities in datastore. > > have "login:required" and anyone who is authenticated will be able to get >> to your admin routes. > > > Not what I want, > > any global handler I can put in code to restrict login to my domain > accounts? > > > Regards, > Aakash > > On Tue, May 19, 2015 at 10:15 PM, Patrice (Cloud Platform Support) < > [email protected]> wrote: > >> Hey! >> >> You either have two choices here, since, indeed, login:domain doesn't >> exist. >> >> You can either keep "login:admin" and add the members you want as owners >> on the project, or have "login:required" and anyone who is authenticated >> will be able to get to your admin routes. >> >> Do you have Users entities in the datastore? >> >> Cheers >> >> >> On Wednesday, April 29, 2015 at 4:14:30 AM UTC-4, Aakash Bapna wrote: >>> >>> The public facing site uses our custom auth (Facebook connect), admin >>> panel uses Google accounts Auth. >>> We wanted to restrict access to our admin panel, so we gave login:admin >>> in app.yaml for /admin routes, it was working for the time being. >>> >>> Now we want more people in the company(Google Apps managed) to access >>> the admin panel. >>> Isn't there a "login:domain" ? >>> >>> I was trying to change authentication to Google Apps for my application >>> and set "login:required", but the old console on appengine.google.com >>> doesn't let me do so. >>> It gives a warning about existing "User" properties in datastore. >>> >>> Screenshot - >>> >>> <https://lh3.googleusercontent.com/-rrj585v8Ucw/VUCQ49WLb0I/AAAAAAAADAc/D1LQWqr7QUk/s1600/Screen%2BShot%2B2015-04-29%2Bat%2B1.29.03%2Bpm.png> >>> >>> However the new console doesn't show any warning. >>> Screenshot- >>> >>> <https://lh3.googleusercontent.com/-pL7Cnx8O2iI/VUCR5vYgqaI/AAAAAAAADAo/_jD6ziP0mrk/s1600/Screen%2BShot%2B2015-04-29%2Bat%2B1.29.22%2Bpm.png> >>> >>> I am not sure whether I should go ahead and change this and not have any >>> effect on users on our production site. >>> >>> Are there are any better ways to set this up? >>> Custom auth on production, Google Apps auth for admin panel. >>> >>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google App Engine" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-appengine/sn4ZDgGfCeE/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> 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/51c1ed14-200e-41d8-a9e4-5944a4ac52af%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-appengine/51c1ed14-200e-41d8-a9e4-5944a4ac52af%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/ec4f2d0e-b859-4eab-ab03-c1125e8fa8fc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
