I'm creating a web application and have a pretty simple question about
the Data API.  Essentially, after I get a session token, is there
anyway to get a "unique identifier" of any sort (gmail account name,
id number, UUID, etc) that I can use in my application to store
relational data against this user?

For example, here's the application flow:

1. A user comes to my site.
2. My site doesn't recognize the user and doesn't have a session token
for them, so it redirects them to https://www.google.com/accounts/AuthSubRequest
with scope/next/session set.
3. The user logs in to their Google Account and clicks "Grant Access".
4. The user is returned to my site with a ?token=SOMETHING
5. My site sees the token and makes a request to AuthSubSessionToken
and gets a session token.

Now the problem is after step 5, I have a session token for this user,
but I have no idea who this session token is for, or if I have any
previous session tokens I should invalidate for this user, or if I
have any data tied to this user already.

It seems like there should be some sort of API call I can now make
with this session token that would return at the very least some sort
of unique identifier for this user that's tied to the Google Account
they logged in with.  Ideally, it would also return a First/Last name
and even a GMail address.  This way, I can have a table that stores
unique_google_id and last_session_token.... so after my step 5, I can
then make an additional API call, request a unique_google_id for the
token, check in my data table to see see if the unique_google_id
already has a last_session_token, and if so, invalidate it through
another API call.  Furthermore, I can store relational data against
the unique_google_id in my application.

It seems like this is a very basic functionality that should already
exist, yet I can't find anything even close... did I just overlook
something?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to