Hi, I think you have misunderstood the auth mechanism provided by AuthSub. The first approach you described is what is using the ClientLogin auth mechanism, which is passing in the username and password account to authenticate. The second approach AuthSub is the "authentication substitution" on behind of your user, who will be redirected to login on Google account page and subsequently redirected back to your page. The two auth mechanism are different and they are cannot be used interchangeable. The ClientLogin token is not the same token that is expected from AuthSub.
For more detailed information on ClientLogin and AuthSub, please go to - http://code.google.com/apis/calendar/developers_guide_protocol.html#Auth Hope that helps, Austin On Tue, Apr 15, 2008 at 8:49 AM, vijay shanker <[EMAIL PROTECTED]> wrote: > > > > > Hi group, > > > > I am developing a server application. My server is supposed to make > connection to Google and > > get data from Google server. There is more then 100 users registered to our > server. I got to get > > updated data for every user in some time interval(say 3 hours). > > > > What authentication option I should use for making connection to Google for > all the users. > > > > What I am doing currently is making a GoogleService object for my > application as > > > > service = new CalendarService("MY- SERVER"); > > > > for every request to Google for different user I am changing credentials as > > > > > service.setUserCredentials(user.getUsername(),user.getPassword()); > > > > > > and getting the required information from Google server. > > But this approach takes some time in executing and that time I want to be > reduced. > > Now I got to know about AuthToken that will save some of my time. > > > > I am trying to use this approach like this > > calendarService = new CalendarService("MY- SERVER"); > > > > calendarService.setAuthSubToken(aString);// this auth > token I received from previous request. > > CalendarFeed feed = calendarService.getFeed(url, > CalendarFeed.class); > > But this code gives me this exception. > > com.google.gdata.util.AuthenticationException: Token invalid - Token cannot > be parsed > > > > > > So guys I am clueless how to achieve this can you please provide some pseudo > code that can help me in > > Using AuthToken approach. > > > > > > Enjoy, > > Vijay shanker. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar 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-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
