For More Information I used the OpenId+OAuth for accessing google service. I got the response URL query string &openid.ext2.request_token=4%2FMrbWJdwNxy1Wv7K8K0qFJlNO4EXa
I passed the token id from the query string to the application. When executing this line Session["sessionToken"] =AuthSubUtil.exchangeForSessionToken(tokenId, null); I got the error The remote server returned an error: (403) Forbidden. On Aug 2, 3:21 pm, Yuvaraj Shanmugam <[email protected]> wrote: > Hi , > > I used the following code in asp.net for storing token in session. but > it throws an error > > string tokenId = > Request.QueryString["openid.ext2.request_token"]; > string emailId = > Request.QueryString["openid.ext1.value.email"]; > > Session["sessionToken"] = > AuthSubUtil.exchangeForSessionToken(tokenId, null); > GAuthSubRequestFactory authFactory = new > GAuthSubRequestFactory("cl", "google-ExampleApp-v1.0"); > authFactory.Token = Session["sessionToken"].ToString(); > > Error message is > The remote server returned an error: (403) Forbidden. > > In dotnet code I get: > GDataRequestException > Execution of exchangeForSessionToken > > Can any one help me with this issue -- 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://code.google.com/apis/calendar/community/forum.html
