4 messages in com.googlegroups.google-gadgets-apiRe: Reference to Google Username.| From | Sent On | Attachments |
|---|---|---|
| Ashish | 30 Oct 2007 06:54 | |
| Dan (Google Employee) | 30 Oct 2007 09:28 | |
| Matt Foster | 30 Oct 2007 10:35 | |
| dimon.minko | 20 Nov 2007 08:57 |
| Subject: | Re: Reference to Google Username.![]() |
|---|---|
| From: | Matt Foster (matt...@gmail.com) |
| Date: | 10/30/2007 10:35:49 AM |
| List: | com.googlegroups.google-gadgets-api |
Greetings Ashish,
I have had this issue with my own applications and attempting to further integrate a user with their data associated with a particular Google service, such as Blogger or Google Calendar. They do have protocols to accommodate for this idea, they call it the "AuthSub". The idea is kind out of there but in a nutshell, you have the user redirected to a page on Google's server that says "So and So is requesting permission to access your Google Calendar info do you accept?" They either confirm or deny, if they confirm your application is given a token, this token can then be used to access data for that user only from that service. Anyways I won't continue to stagger an explanation of the service, here is the link to the documentation.
http://code.google.com/apis/accounts/AuthForWebApps.html
Cheers, Matt
On Oct 30, 12:28 pm, "Dan (Google Employee)" <api....@google.com> wrote:
Hi Ashish,
Unfortunately, allowing access to the user's email address presents a security issue, so it isn't supported by the API. There are potential ways to work around authentication issues that have different intersections of security and ease-of-use. For instance, you could just have the user type in his or her email address and save it as a userpref, which requires only one extra step from the user's point of view, but doesn't verify that the email actually belongs to the user. Or, you could generate a hash or password for each email address and require that be entered as well (this requires extra code, and likely a back-end server).
It's possible that others have worked around this issue and will offer more suggestions.
I hope this helps.
Best, Dan
On Oct 30, 6:54 am, Ashish <ashi...@gmail.com> wrote:
Hi there,
I am trying to create a google gadget for personalized webpages to be used within my company. We use Google Apps stack and have a company wide Google-driven start page This gadget shows content from another page (perl-cgi webpage). This other page uses our Google email IDs to get the requisite data in HTML format. My question is how to get the Google username automatically within the gadget if the user has already signed in.
I have searched quite a bit (even in the groups) and found no answer to this issue I am facing when I create this simple gadget. Any help in this regard is much appreciated.
Thanks, Ashish




