Hi, I think this is because the Contacts API requires you to register a domain before using it with AuthSub and so localhost won't work:
http://code.google.com/apis/contacts/developers_guide_protocol.html#auth_sub For the second part - the secure parameter doesn't mean "make the AuthSub link https", but instead has to do with what kind of token you are requesting. Secure tokens require requests to be signed when using them. If you have further questions about the Contacts API feel free to ask in its developer forum: http://groups.google.com/group/google-contacts-api Cheers, -Jeff On Jun 14, 5:23 am, slishnevsky <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to perform AuthSubRequest from my web app running on > localhost. > > The url would be:http://localhost/Google/Default.aspx > > So, when I do this: > > string authUrl = AuthSubUtil.getRequestUrl(Request.Url.ToString(), > "http://www.google.com/m8/feeds/", false, true); > string token = AuthSubUtil.getTokenFromReply(Request.Url); > > I always get token = null. > > I checked the returning authUrl, copied and pasted into browser - > works just fine, get token back in url. > > However from code I get null for token. > > Need help !!! > > And one more thing - the value in authUrl starts with https://, but it > shouldn't since [secure] parameter is set to false in > AuthSubUtil.getRequestUrl. > > Thanks a lot. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Data Protocol" 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 -~----------~----~----~----~------~----~------~--~---
