Commit graph

40 commits

Author SHA1 Message Date
Mike Emery
c775850614 making signed attributes public so that it can be used with 3rd party http request libraries to use oauth through query string 2010-11-15 08:11:11 -08:00
laserlemon
e66291245d More gemspec-related cleanup. 2010-10-13 15:48:39 -04:00
laserlemon
3cfb55566e Version bump to 0.0.0 2010-10-13 15:26:14 -04:00
laserlemon
e329aaf758 Ditched Jeweler for Bundler. 2010-10-13 15:20:21 -04:00
laserlemon
4978f99d6b Re-order the test helper requirements to not explode if the test-unit gem is installed locally. 2010-10-13 10:28:07 -04:00
laserlemon
b687431d43 Regenerated gemspec for version 0.1.1 2010-10-13 10:09:20 -04:00
laserlemon
23def39599 Bump version. 2010-10-13 10:09:12 -04:00
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
cc7510f6a5 Updated parameter and attribute sorting during normalization to behave consistently across Ruby versions 1.8.7 and 1.9.2. 2010-10-13 08:18:19 -04:00
laserlemon
fb19df165f Integrated with Bundler and included the gemspec. 2010-10-13 07:52:43 -04:00
laserlemon
090f1de829 Header parsing and validation tests pass.
Private key behaves when nil and signature is never included in normalized parameters.
2010-10-11 23:54:37 -04:00
laserlemon
2a9f21f708 Add header parsing and validation tests. 2010-10-11 23:53:31 -04:00
laserlemon
f61e2750dc Add the ability to parse string OAuth headers into SimpleOAuth::Header options and to validate those headers against consumer and token secrets. 2010-10-11 23:52:56 -04:00
laserlemon
b2121ee956 Integrated with Jeweler. 2010-10-11 22:17:15 -04:00
laserlemon
1f519dd45a Add the SimpleOAuth::Version module. 2010-10-11 22:14:36 -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
bd1153df5d Pass query parameter tests, changing the url_params method to return an array. 2010-10-11 15:52:24 -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
501f7d8cde Properly normalize the parsed URI upon header initialization. 2010-10-11 14:49:58 -04:00
laserlemon
fc2fddc29b Add header initialization tests. 2010-10-11 14:49:36 -04:00
laserlemon
902fa3ed8c Add initial OAuth header generation functionality. 2010-10-11 13:52:58 -04:00
laserlemon
f4c5b632b8 Update creator name in license file. 2010-10-11 13:52:28 -04:00
laserlemon
62fb3f590c Remove install and uninstall hook files. 2010-10-11 13:51:41 -04:00
laserlemon
8be3bdc76e Populate the init.rb file for use as a Rails plugin. 2010-10-11 13:50:58 -04:00
laserlemon
a603697fa8 Initial import. 2010-10-11 13:45:52 -04:00