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 [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