Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the Username in a Gmail Contextual Gadget

I am writing a Gmail Contextual Gadget, and in order to authenticate the user correctly on the server, i need to know their full email address ([email protected]).

I can retrieve the domain (googleapps.com) but not the username.

Using the content extractors I can get the 'To' field on the email, the only problem is if there are two users on the same domain emailed (ie [email protected] and [email protected]).

Any thoughts?

like image 784
jamie-wilson Avatar asked Jun 02 '11 04:06

jamie-wilson


1 Answers

You need to implement SSO (single sign-on) within the contextual gadget. When the contextual gadget loads it passes the opensocialid of the user. You have to maintain a correlation between the user emailid and user opensocialid in your local database and do the identification by opensocialid lookup.

Read here for more details: http://code.google.com/googleapps/marketplace/best_practices.html#gadget_sso

like image 107
Nands Avatar answered Oct 24 '22 02:10

Nands