Google Groups Home
Help | Sign in
Problem in openomy api page
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Nick  
View profile
 More options Apr 29, 7:09 pm
From: Nick <n...@afternight.org>
Date: Tue, 29 Apr 2008 16:09:57 -0700 (PDT)
Local: Tues, Apr 29 2008 7:09 pm
Subject: Problem in openomy api page
On the api page (http://api.openomy.com/2.0) where it talks about
creating signatures there is a serious error that makes it impossible
to generate valid signatures if you just follow the spec.   It states:

Construct an HMAC-SHA1 of the following pattern:
HTTP-VERB\n
relativeUri\n
date\n

Note the \n at the end of date.  That is *incorrect*.  The pattern
should be:
HTTP-VERB\n
relativeURI\n
date

with no \n after date.  If you put in the \n you will get a 401
invalidSignature error when you try to use your confirmed token to
actually do something.  The only way I worked this out was by tracing
the ruby library code and finally noticing that it does not append a
\n to the string that gets encoded.

You should really fix this as it makes it impossible to use the api
and is very hard to track down.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Sefferman  
View profile
 More options Apr 29, 9:43 pm
From: "Ian Sefferman" <is...@iseff.com>
Date: Tue, 29 Apr 2008 18:43:21 -0700
Local: Tues, Apr 29 2008 9:43 pm
Subject: Re: Problem in openomy api page
Hey Nick,
You're absolutely correct. I've updated the documentation to reflect
the correct method.

I'm very sorry for the trouble -- we try hard to make sure we give
accurate, descriptive (yet concise) docs, so please feel free to give
us as much feedback as you have! You can either email me directly, or
the list.

Ian

--
Ian Sefferman
http://www.openomy.com | http://www.iseff.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google