Sorry that noone answered earlier, but there is a wiki page about authsub usage.
http://code.google.com/p/google-gdata/wiki/AuthSubSupport You would not need to add the "setAuthSubToken()" to the service.cs class, you could just leave the code outside and just set it on the factory (as you are doing in the implementation). Regards Frank Mantek Google On 6/26/07, DavidBowdoin <[EMAIL PROTECTED]> wrote: > > > I figured out some items, and made two changes to the GData code. > > I can get my temp Auth code by using: > Response.Redirect(AuthSubUtil.getRequestUrl(next, scope, > false, true)); > > I can convert it to a session Auth code by using: > AuthSubUtil.exchangeForSessionToken(Request["token"],null); > > Then to use the session token, I create a service object and set the > token like: > Service service = new Service("lh2", "myCompany-myApp-1"); > service.setAuthSubToken("sessionToken"); > > For that to work, I added setAuthSubToken to the service.cs file: > public void setAuthSubToken(string token) > { > > ((GDataGAuthRequestFactory)this.GDataRequestFactory).GAuthToken = > token; > } > > And changed gauthrequest.cs, line 69 to: > public const string Header = "Authorization: AuthSub token="; > > Has anyone else had trouble using C# and session tokens? Am I doing > it wrong, or is the above the best way of doing it? > > Thanks, > David Bowdoin > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Data API" group. To post to this group, send email to google-help-dataapi@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---