This is the exact same problem I am having. Jamie
----- Original Message ----- From: "Colin Lind" <[email protected]> To: "Google Health Developers" <[email protected]> Sent: Tuesday, October 20, 2009 5:01 PM Subject: [Google-Health-API] 401 Invalid AuthSub signature. > > I am having trouble requesting a secure session auth token in the H9 > sandbox env. I have successfully tested with secure=0 in the h9 > sandbox env. I have followed the API documentation and I was under > the impression I had to sign the token, after digging around some > sample code I found I need to sign the data. > > And the data being: > httpMethod SP httpRequestedURL SP timestamp SP nonce > > However my sig seems to be quite a bit longer than the examples > resulting in the invalid sig. error. > > Just to clarify i have base64 encoded the string sig below. > > My Header is below: > AuthSub token="1/TCNfYpEeR0B5LQcbQBgyIGATiaQZnWPB51nTvo8n9Sw" > data="GET https://www.google.com/accounts/AuthSubSessionToken > 1256051646 4344400485116645383" > sig="XEvDqVbDmMucVXTDo8OFYBnDpWzDhmYtU8K5wr7GksKqcw/ > DneKAneKAmFnFuMOIw7XDisOxJ8ODw45p4oCeGVRgX > +KAk8OCw6N2w6DDvDfCssO3w5LDgeKEosOAIMKz4oCwH > +KAmVTDgXsEamslw5LDuS8CxaAnwr5jTsOMIyJPEkfCtOKAsMOAU8O2w43FocK0FsK4w7TigKYp4oCce8OJAyB1MC/ > CrMOYwr4dXsKiw4BXy4bDmTTigJN7w7fCrcK7wqXigLB5LTfigLnDqgAz" sigalg="rsa- > sha1" > > Any Help would be appreciated! > > Thanks, > Colin > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Health Developers" 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/googlehealthdevelopers?hl=en -~----------~----~----~----~------~----~------~--~---
