Commit graph

20 commits

Author SHA1 Message Date
laserlemon
d05bed55d2 Test the RSA-SHA1 signature method. 2010-10-13 10:07:18 -04:00
laserlemon
644b8bb2fe Add PLAINTEXT signature test. 2010-10-13 09:44:39 -04:00
laserlemon
6e188c8bab Renamed the "valid?" method test. 2010-10-13 09:37:49 -04:00
laserlemon
126b807e2d Rearranged method definitions. 2010-10-13 09:37:22 -04:00
laserlemon
b413083e43 Implement proper RSA-SHA1 signing.
Need to find an OAuth service provider supporting the RSA-SHA1 signature method for verification.
2010-10-13 09:25:11 -04:00
laserlemon
2a9f21f708 Add header parsing and validation tests. 2010-10-11 23:53:31 -04:00
laserlemon
9651c1b8f3 General test cleanup. 2010-10-11 18:24:41 -04:00
laserlemon
8fcc1154a3 Test the signature method's delegation to separate methods corresponding to the specified signature method option. 2010-10-11 18:22:51 -04:00
laserlemon
597350d998 Test the SimpleOAuth::Header#to_s method. 2010-10-11 18:08:35 -04:00
laserlemon
c86b8cbeb9 Test the normalized OAauth header attributes string, ensuring proper sorting, quoting and encoding. 2010-10-11 17:45:28 -04:00
laserlemon
cd690a7d72 Test whether signed attributes contain a signature key. 2010-10-11 17:38:27 -04:00
laserlemon
c8790cf98e Test HMAC-SHA1 signature generation against real-world, accepted signatures.
Also, stop memoizing the to_s and url instance methods.
2010-10-11 17:36:20 -04:00
laserlemon
dd11ac300b Test generation of the secret used for generating the OAuth signature. 2010-10-11 16:32:58 -04:00
laserlemon
6e1f58cb75 Test the combination of HTTP method, URL and normalized parameters into the signature base string. 2010-10-11 16:26:34 -04:00
laserlemon
98e23c185b Test the normalized request parameter string. 2010-10-11 16:18:45 -04:00
laserlemon
719a949695 Test the combination of attributes, params and URL params into an array of signature params. 2010-10-11 16:04:12 -04:00
laserlemon
83d3a6f2f6 Test URL query parameter parsing. 2010-10-11 15:52:00 -04:00
laserlemon
3286cffaa3 Add URL encoding tests. 2010-10-11 15:27:49 -04:00
laserlemon
e1ecd99f42 Test whether OAuth header attributes are parsed and re-keyed correctly. 2010-10-11 15:10:05 -04:00
laserlemon
fc2fddc29b Add header initialization tests. 2010-10-11 14:49:36 -04:00