Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home for chromium.org
« Groups Home
Chrome WebStore / Checking for Payment / OpenID: user.getFederatedIdentity() always returns Null
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
KenOKABE  
View profile  
 More options Feb 13, 4:35 pm
From: KenOKABE <kenok...@gmail.com>
Date: Mon, 13 Feb 2012 13:35:54 -0800 (PST)
Local: Mon, Feb 13 2012 4:35 pm
Subject: Chrome WebStore / Checking for Payment / OpenID: user.getFederatedIdentity() always returns Null
Chrome WebStore / Checking for Payment / OpenID Question.

Checking for Payment
http://code.google.com/chrome/webstore/docs/check_for_payment.html#us...
PROBLEM:
This walkthrough(Java sample) does not work for me,
because I cannot obtain
* a user ID for the current user (an OpenID URL corresponding to a
Google account)

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.

Ken


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken OKABE  
View profile  
 More options Feb 13, 4:55 pm
From: Ken OKABE <kenok...@gmail.com>
Date: Tue, 14 Feb 2012 06:55:47 +0900
Local: Mon, Feb 13 2012 4:55 pm
Subject: Re: Chrome WebStore / Checking for Payment / OpenID: user.getFederatedIdentity() always returns Null
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken OKABE  
View profile  
 More options Feb 13, 6:49 pm
From: Ken OKABE <kenok...@gmail.com>
Date: Tue, 14 Feb 2012 08:49:23 +0900
Local: Mon, Feb 13 2012 6:49 pm
Subject: Re: Chrome WebStore / Checking for Payment / OpenID: user.getFederatedIdentity() always returns Null
Ok, I solved the problems by myself.

http://code.google.com/appengine/articles/openid.html

I needed to configure GAE login via dashboad.
Pity the 'walkthrough' never mentions this.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »