I know we've been over this many times before, but it keeps creating
discussions on the ruby list and there are a few things that I am
confused about myself in researching it again.

We are attempting to create low level unit tests in the ruby library
for all of the test cases in both the spec and on the wiki at this
page:
http://wiki.oauth.net/TestCases

I have noticed a discrepancy in the section about Normalize Request
Parameters here. It is a subtle discrepancy, but it is causing some
confusion I think.

I read the spec as doing the following:

1. Normalize the request parameters, which means only ordering the
parameters and then separating them with "&"'s ( 9.1.1)
2. Normalizing the URL (9.1.2)
3. Concatenation of the encoded versions of (the http request method,
the normalized url (see step 2) and the normalized request parameters
(see step 1.) (9.1.3)

The important distinction being that the encoding takes places in 3
and not in 1. This is also what is hinted in the test case in 9.1.1 of
the Spec.
However in the test cases on the wiki the encoding appears to be done
in step 1. However the full SBS examples on the wiki appear to have
had the encoding done in step 3.

The Ruby implementation encodes each parameter in step 1 and then
re-encodes them in step 3. I have corrected this in git so far. But
would like to just check that my analysis is correct, so we can close
this chapter once and for all.

Pelle


-- 
http://agree2.com - Reach Agreement!
http://extraeagle.com - Solutions for the electronic Extra Legal world
http://stakeventures.com - Bootstrapping blog

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OAuth" 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/oauth?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to