Accoding to 'Identifying the User'
http://code.google.com/chrome/webstore/docs/identify_user.html#how --'If you're writing a hosted app with Google App Engine, supporting
Google Accounts is easy. You just use the default Google Accounts API
authentication and the Users service. '
Not Exactly...
PROBLEM:
user.getFederatedIdentity() always returns Null
--'If you aren't using Google App Engine, you can get the Google
OpenID endpoint by sending a request to https://www.google.com/accounts/o8/id.
See Federated Login for Google Account Users for details.'
Ok, I use GoogeAppEngine, so I do not have to request to
https://www.google.com/accounts/o8/id, and GAE framework shall
return openID URL corresponding to gmail address via
user.getFederatedIdentity() , am I correct?
I can mangage GoogleAccount SignIn/SignOut, just cannot obtain openID.
Please help. thank you.
if (!(userService.isUserLoggedIn())) { output.printf("<a href=\"%s\">Sign in</a>", userService.createLoginURL(url, null, "https://www.google.com/accounts/o8/id", new HashSet<String>()));
}
Also, the above code works fine on Eclipse-GAE/J local test environment(http:/localhost:8888), however once I deploy GAE server, Internal ServerError(500) occurs.
> Accoding to 'Identifying the User' > http://code.google.com/chrome/webstore/docs/identify_user.html#how > --'If you're writing a hosted app with Google App Engine, supporting > Google Accounts is easy. You just use the default Google Accounts API > authentication and the Users service. ' > Not Exactly... > PROBLEM: > user.getFederatedIdentity() always returns Null
> --'If you aren't using Google App Engine, you can get the Google > OpenID endpoint by sending a request to https://www.google.com/accounts/o8/id. > See Federated Login for Google Account Users for details.' > Ok, I use GoogeAppEngine, so I do not have to request to > https://www.google.com/accounts/o8/id, and GAE framework shall > return openID URL corresponding to gmail address via > user.getFederatedIdentity() , am I correct?
> I can mangage GoogleAccount SignIn/SignOut, just cannot obtain openID. > Please help. thank you.
On Tue, Feb 14, 2012 at 6:55 AM, Ken OKABE <kenok...@gmail.com> wrote: > UserService userService = UserServiceFactory.getUserService();
> if (!(userService.isUserLoggedIn())) > { > output.printf("<a href=\"%s\">Sign in</a>", > userService.createLoginURL(url, null, > "https://www.google.com/accounts/o8/id", > new HashSet<String>()));
> }
> Also, the above code works fine on Eclipse-GAE/J local test > environment(http:/localhost:8888), > however once I deploy GAE server, Internal ServerError(500) occurs.
> What's going on?
> Thanks. > Ken
> On Tue, Feb 14, 2012 at 6:35 AM, KenOKABE <kenok...@gmail.com> wrote: >> Chrome WebStore / Checking for Payment / OpenID Question.
>> Accoding to 'Identifying the User' >> http://code.google.com/chrome/webstore/docs/identify_user.html#how >> --'If you're writing a hosted app with Google App Engine, supporting >> Google Accounts is easy. You just use the default Google Accounts API >> authentication and the Users service. ' >> Not Exactly... >> PROBLEM: >> user.getFederatedIdentity() always returns Null
>> --'If you aren't using Google App Engine, you can get the Google >> OpenID endpoint by sending a request to https://www.google.com/accounts/o8/id. >> See Federated Login for Google Account Users for details.' >> Ok, I use GoogeAppEngine, so I do not have to request to >> https://www.google.com/accounts/o8/id, and GAE framework shall >> return openID URL corresponding to gmail address via >> user.getFederatedIdentity() , am I correct?
>> I can mangage GoogleAccount SignIn/SignOut, just cannot obtain openID. >> Please help. thank you.