Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4243654
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:36:22+00:00 2026-05-21T03:36:22+00:00

On March 1, 2011 App Engine changed its login flow, breaking my app (see

  • 0

On March 1, 2011 App Engine changed its login flow, breaking my app (see the
Google Groups message). This issue also came up in this Stack
Overflow question. The suggested answers are

“have the app perform the redirect. That is, createLoginUrl only works when the
continue url is a url for the app. If you need the user to be sent to
another app/host after login, then your app needs to do that redirect”

and

“set up a redirect handler on your own app. Make that the target
of the continue parameter, and have it send a final redirect to your
actual target”.

I’m asking this question to get details on how to make this work. My application consists of two GAE apps, a GWT front end and the back end exposing a REST
API. Here is the current flow.

The user browses to http://my-front.appspot.com/, and the GWT makes a
JSONP call to a http://my-back.appspot.com/User servlet.

The /User servlet checks the GAE
UserServiceFactory.getUserService().getCurrentUser() to see if it’s
null. For users not logged in, this is null, and the servlet returns
JSONP that the user is not logged in.

The GWT code gets the “not logged in” message, and does

String login = "http://my-back.appspot.com/Login";
Window.open(login, "_self", "");

The Login servlet:

public void doActualGet(HttpServletRequest req, HttpServletResponse resp) 
    throws ServletException, IOException {

    UserService userService = UserServiceFactory.getUserService();
    String url = "http://my-back.appspot.com/LoginRedirectServlet";
    // String url ="http://my-front.appspot.com";  <--------- Before 1 March
    log.info("Auth then redirect to: " + url);
    String redirect = userService.createLoginURL(url);
    resp.setStatus(301);
    resp.setHeader("Location", redirect);
    resp.setHeader("Connection", "close");
}

My new LoginRedirectServlet has one line:

resp.sendRedirect("http://my-front.appspot.com/");

This usually results in a redirect loop, though sometimes after hitting the initial url several times it works. My suspicion is that there’s something wrong about the code near Window.open, but I’m open to all suggestions.

Thanks,
Glenn

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T03:36:23+00:00Added an answer on May 21, 2026 at 3:36 am

    Credit due to Nick Johnson for whining about the two-app architecture. I’ve never liked it. I moved war/MyFront.html and the compiled GWT code in war/myfront/ to the war file of the myback project, changed all urls to the form http://my-back.appspot.com/ and deployed. It worked!

    This is just a hack, but it proves the principle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT 22 March 2011 : This question is no longer that relevant since Youtube
This may be old news but back in March 2009, this article, Model-View-ViewModel In
I have a boost::posix_time::ptime that points to March 31st 2010 like this: ptime p(date(2010,
The Arcana Elite Suite for Intraweb hasn't been updated since March 2008. Does this
I have the following table: Year Line January Febraury March .... December 2011 B1
i fetched from created field date and time like this format 2011-3-10 17:26:50 and
Following these instructions: http://neogregious.blogspot.com/2011/04/migrating-app-to-high-replication.html I have managed to migrate to the high replication datastore
I get this error when i click the login button of facebook in my
Here's the given input from the user: Year = 2011, Month = 3 (March),
I get a problem in a form handler in app engine (Python). Basically when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.