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 8240355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:27:49+00:00 2026-06-07T20:27:49+00:00

I have a client test app and a server app, both hosted on GAE.

  • 0

I have a client test app and a server app, both hosted on GAE. The client is a simple web front end, the server hosts resources protected by Oauth. Authentication is through OpenId and the applications support Federated Login. The problem is that after the user logs in, the userService seems to forget who they are (the browser has an ACSID cookie, so it remembers).

Here’s the flow (from the GAE logs)….
The user starts by entering cktestclient.appspot.com (the client app) into the browser and presses ShowMyCommitments button. Then the following is seen in the server side log (commitkeeperapi.appspot.com).

9:10:22 AM: /oauth/authorize?response_type=code&client_id=webappclient&redirect_uri=http://cktestclient.appspot.com/client/showStartPage&scope=CommitKeeper_Access
We aren’t logged in yet, so we will get redirected
9:10:22 AM: /login/?continue=http://commitkeeperapi.appspot.com/oauth/authorize?response_type=code&client_id=webappclient&redirect_uri=http://cktestclient.appspot.com/client/showStartPage&scope=CommitKeeper_Access
I then login using a url generated by createLoginURL

9:10:33 AM: /oauth/authorize?response_type=code&client_id=webappclient&redirect_uri=http://cktestclient.appspot.com/client/showStartPage&scope=CommitKeeper_Access
OAuth dance continues and we see that we have a logged in user
com.fourspires.api.server.MyGaeAuthenticator authenticate: Current user (from userService) is: richardlandis@gmail.com

9:10:34 AM: /oauth/access_token
More Oauth Dancing… getting oAuthToken, returning to client at cktestclient.appspot.com:/client/showStartPage – which continues to make a call at commitkeeperapi.appspot.com:/v3/commitments

9:10:34 AM: /oauth/validate
Dancing… validating oAuthToken that was sent with the request for commitments

9:10:36 AM: /v3/commitments/?oauth_token=9491caca6c9ad2b2cb2d20a5cf2773ce22b99e076ff0dcb3a47d06e6a26038d5ccf63c66f1f2387e
Now we are back on the server code and we check for the user – and it is null!
com.fourspires.api.util.UserHelpers getCurrentUser: UserServiceFactory.getUserService().getCurrentUser() = null

Based on reviewing all the threads I could on this issue, I added true to the server’s appengine-web.xml – but nothing changed.

Does anyone know why the UserService has lost track of my user? I have a workaround for this problem, but I was interested in understanding more about why this is failing.

PS – This seems very similar to GWT and AppEngine User Service but that doesn’t seem to have been resolved.

  • 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-06-07T20:27:52+00:00Added an answer on June 7, 2026 at 8:27 pm

    I believe that the answer is because that the two requests that I make are being handled by different ApiProxy’s, which have different environments and thus different understandings of who the current user is. I am not exactly sure why I am getting two different ApiProxys but I can do further investigation on that.

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

Sidebar

Related Questions

I've got a small client/server test application where I have a Flex app that
I am writing a simple UDP-based client/server app and testing with both the client/server
In my app I have the following: client.on('test', function(req, fn) { var returnArr =
Actually,i have do a test with the server.c and client.c in the android emulator(ps:they
I have client/server applications and a very simple protocol for communication. More precisely, it's
We have client server based app which saves user related data into a zip
i have client-server app, I'm managing connections with Threads and handlers inside app, but
I have client/server application where the client app will open files. Those files get
I have client-server app. Client on C++, server on Java. I am sending byte-stream
I have a simple 'echo' PB client and server where the client sends an

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.