Hello,

I'm trying to use AuthSub within a Google Sidebar Gadget.  Technically
it works in that the user is authenticated.

However, instead of returning back to the calendar, after the user has
been authenticated and permission granted, the user is taken to the
url of the gadget directly.

So, the user experience is:
1) Add gadget to Google Calendar
2) Click a login button
3) Go through the AuthSub process (select user, grant access)
4) Stare at a virtually blank page that contains the new gadget's
content and wonder what to do next.
5) Click the back button a bunch of times or just retype the calendar
url.
6) Finally back to the calendar and the gadget is working fine.

I'm coding in JavaScript.

When you click the login button within the gadget, it calls the
following code:
var token = google.accounts.user.login(CALENDAR_EVENT_FEED_URL);

With the variable CALENDAR_EVENT_FEED_URL set equal to 'http://
www.google.com/calendar/feeds/default/allcalendars/full';

(though I've tried this with other feed urls as well).

Any thoughts?  Any ideas?

I've seen AuthSubUtil.getRequestUri mentioned but I haven't seen that
in JavaScript yet.

I'm not sure how to set a Next parameter with the JavaScript library.

Any help would be greatly appreciated.

Thanks,

- Dan





--

You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" 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-gadgets-api?hl=.


Reply via email to