I'm creating an extension that I'd like to use to update my Google
Latitude extension with.
I was able to achieve that by using OAuth, and the Google Latitude
API.
My problem is that using OAuth, I'm giving the extension 'permanent'
permission to update my current location.
That means that even if I log off from Gmail/Google, then go to work
or something, if my wife uses the Chrome browser on the home computer,
my current location will be updated to 'home'.
That's because the extension has no knowledge of who's currently
logged on Google.com (if anyone). It simply uses the access token
created when I installed the extension, and authorized it to access/
update my Google Latitude data.
So, to fix this:
1. Is there a way to detect the currently logged user on google.com?
If so, I could store the access tokens per user, and user the
appropriate token when one of those is currently logged in.
2. Is there a way to have a callback function that is called when the
user logs on or off from google.com? If so, I could load and save the
access token when that happens, so when a new user who logs in, the
access token of the previous user will not be used.
3. Is there a better way for my extension to access the data of the
currently logged user?
Thank you.
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.