This wiki is no longer active and is left here for historical purposes. Please visit oauth.net for up-to-date information.
View
 

TestCases

This version was saved 10 years, 3 months ago View current version     Page history
Saved by PBworks
on October 11, 2007 at 3:14:54 pm
 

Here are test cases for OAuth algorithms.

 

To discuss this page, please use the Test Cases thread in the Google Group OAuth.

 

Parameter Encoding (section 5.1)

 

In this table, U+xxxx means the character whose Unicode code point is xxxx (in hexadecimal notation).

 

parameter name or valueencoded
abcABC123abcABC123
-._~-._~
%%25
&=*%26%3D%2A
U+000A (LF)%0A
U+0020 (space)%20
U+007F%7F
U+0080%C2%80
U+3001%E3%80%81

 

Authorization Header (section 5.4.1)

 

Normalize Request Parameters (section 9.1.1)

 

In this table, parameters are shown as a document of MIME type application/x-www-form-urlencoded that conforms to HTML 4.01 section 17.13.4.1.

 

parametersnormalized
a=b&c=da=b&c=d
a=x!y&a=x+ya=x%20y&a=%21y
x!y=a&x=ax=a&x%21y=a

 

Concatenate Request Elements (section 9.1.2)

 

HMAC-SHA1 (section 9.2)

 

RSA-SHA1 (section 9.3)

Comments (0)

You don't have permission to comment on this page.