couchdb-oauth.git
13 years agoAdd handy params_from_header_string/1.
Jason Davies [Mon, 13 Jul 2009 22:02:42 +0000 (06:02 +0800)] 
Add handy params_from_header_string/1.

For use when decoding the OAuth's "Authorization" header.

Signed-off-by: Tim Fletcher <tim@tfletcher.com>
13 years agoFix suspected bug in PLAINTEXT signature.
Jason Davies [Mon, 13 Jul 2009 21:59:42 +0000 (05:59 +0800)] 
Fix suspected bug in PLAINTEXT signature.

This JavaScript implementation:
http://oauth.googlecode.com/svn/code/javascript/oauth.js appears to
indicate that the signature only needs to be encoded once, not twice.
This makes erlang-oauth comply, assuming it is passed an already-decoded
signature to verify (which is usual when using something like Mochiweb,
for example).

Signed-off-by: Tim Fletcher <tim@tfletcher.com>
13 years agoSpecifying version key, to help automatic building tools to build the application.
Roberto Aloi [Thu, 4 Jun 2009 09:17:53 +0000 (17:17 +0800)] 
Specifying version key, to help automatic building tools to build the application.

Signed-off-by: Tim Fletcher <twoggle@gmail.com>
13 years agoUse the public_key API; not the helper modules.
Tim Fletcher [Fri, 20 Mar 2009 09:42:22 +0000 (09:42 +0000)] 
Use the public_key API; not the helper modules.

13 years agoFix README quick start prompt numbering.
Tim Fletcher [Sat, 14 Mar 2009 11:56:40 +0000 (11:56 +0000)] 
Fix README quick start prompt numbering.

13 years agoLowercase the host part when normalising URI.
Tim Fletcher [Sat, 14 Mar 2009 11:54:56 +0000 (11:54 +0000)] 
Lowercase the host part when normalising URI.

13 years agoUpdate README.
Tim Fletcher [Wed, 25 Feb 2009 20:18:18 +0000 (20:18 +0000)] 
Update README.

13 years agoMove signature verification code into helper modules.
Tim Fletcher [Wed, 25 Feb 2009 14:16:51 +0000 (14:16 +0000)] 
Move signature verification code into helper modules.

13 years agoRemove oauth_signature from module list.
Tim Fletcher [Wed, 25 Feb 2009 12:52:38 +0000 (12:52 +0000)] 
Remove oauth_signature from module list.

13 years agoAdd signature verification.
Tim Fletcher [Wed, 25 Feb 2009 12:51:41 +0000 (12:51 +0000)] 
Add signature verification.

13 years agoRSA-SHA1 keys are the consumer secret.
Tim Fletcher [Wed, 25 Feb 2009 12:45:38 +0000 (12:45 +0000)] 
RSA-SHA1 keys are the consumer secret.

13 years agoIntegrate oauth_signature module with oauth module.
Tim Fletcher [Wed, 25 Feb 2009 12:36:37 +0000 (12:36 +0000)] 
Integrate oauth_signature module with oauth module.

13 years agoUse correct HTTP method in oauth:post/5.
Tim Fletcher [Mon, 26 Jan 2009 08:52:13 +0000 (08:52 +0000)] 
Use correct HTTP method in oauth:post/5.

13 years agoRemove old test macros.
Tim Fletcher [Tue, 13 Jan 2009 14:38:59 +0000 (14:38 +0000)] 
Remove old test macros.

13 years agoUpdate README.
Tim Fletcher [Tue, 13 Jan 2009 14:26:20 +0000 (14:26 +0000)] 
Update README.

13 years agoUpdate copyright date.
Tim Fletcher [Tue, 13 Jan 2009 14:20:10 +0000 (14:20 +0000)] 
Update copyright date.

13 years agoAdd an application resource file.
Tim Fletcher [Tue, 13 Jan 2009 14:19:44 +0000 (14:19 +0000)] 
Add an application resource file.

13 years agoAdd rewritten code.
Tim Fletcher [Tue, 13 Jan 2009 14:18:51 +0000 (14:18 +0000)] 
Add rewritten code.

13 years agoRemove the test code.
Tim Fletcher [Tue, 13 Jan 2009 14:14:57 +0000 (14:14 +0000)] 
Remove the test code.

13 years agoSimplify the Makefile.
Tim Fletcher [Tue, 13 Jan 2009 14:14:31 +0000 (14:14 +0000)] 
Simplify the Makefile.

13 years agoDon't autoredirect.
Tim Fletcher [Fri, 12 Dec 2008 23:57:20 +0000 (23:57 +0000)] 
Don't autoredirect.

13 years agoUpdate README.
Tim Fletcher [Fri, 7 Nov 2008 17:23:30 +0000 (17:23 +0000)] 
Update README.

13 years agoAdd Google contacts example.
Tim Fletcher [Fri, 7 Nov 2008 16:57:46 +0000 (16:57 +0000)] 
Add Google contacts example.

13 years agoRemove unused proplists_merge.
Tim Fletcher [Fri, 7 Nov 2008 13:05:39 +0000 (13:05 +0000)] 
Remove unused proplists_merge.

13 years agoAdd support for RSA-SHA1 signing.
Tim Fletcher [Fri, 7 Nov 2008 13:01:53 +0000 (13:01 +0000)] 
Add support for RSA-SHA1 signing.

13 years agoFix Makefile so that test modules recompile when changed.
Tim Fletcher [Fri, 7 Nov 2008 12:53:30 +0000 (12:53 +0000)] 
Fix Makefile so that test modules recompile when changed.

13 years agoCombine oauth_hmac and oauth_plaintext into oauth_crypto.
Tim Fletcher [Fri, 7 Nov 2008 12:32:13 +0000 (12:32 +0000)] 
Combine oauth_hmac and oauth_plaintext into oauth_crypto.

13 years agoRework oauth_request (again).
Tim Fletcher [Fri, 7 Nov 2008 12:27:17 +0000 (12:27 +0000)] 
Rework oauth_request (again).

13 years agoAdd oauth_base module.
Tim Fletcher [Fri, 7 Nov 2008 11:32:53 +0000 (11:32 +0000)] 
Add oauth_base module.

13 years agoRemove oauth_http.
Tim Fletcher [Thu, 6 Nov 2008 23:06:10 +0000 (23:06 +0000)] 
Remove oauth_http.

13 years agoRework oauth_request.
Tim Fletcher [Thu, 6 Nov 2008 23:03:36 +0000 (23:03 +0000)] 
Rework oauth_request.

13 years agoRework oauth_token_pair.
Tim Fletcher [Thu, 6 Nov 2008 22:59:39 +0000 (22:59 +0000)] 
Rework oauth_token_pair.

13 years agoIntegrate oauth_signature with oauth_request.
Tim Fletcher [Thu, 6 Nov 2008 22:57:07 +0000 (22:57 +0000)] 
Integrate oauth_signature with oauth_request.

13 years agoMove proplists_merge into oauth_util.
Tim Fletcher [Thu, 6 Nov 2008 22:52:54 +0000 (22:52 +0000)] 
Move proplists_merge into oauth_util.

13 years agoRework oauth_params.
Tim Fletcher [Thu, 6 Nov 2008 22:50:55 +0000 (22:50 +0000)] 
Rework oauth_params.

13 years agoRework oauth_plaintext to use oauth_util:esprintf.
Tim Fletcher [Thu, 6 Nov 2008 22:48:36 +0000 (22:48 +0000)] 
Rework oauth_plaintext to use oauth_util:esprintf.

13 years agoAdd oauth_util:esprintf/2.
Tim Fletcher [Thu, 6 Nov 2008 22:48:04 +0000 (22:48 +0000)] 
Add oauth_util:esprintf/2.

13 years agoRemove b64 function.
Tim Fletcher [Thu, 6 Nov 2008 22:00:13 +0000 (22:00 +0000)] 
Remove b64 function.

13 years agoSimplify normalize by adding to_string function.
Tim Fletcher [Thu, 6 Nov 2008 21:57:45 +0000 (21:57 +0000)] 
Simplify normalize by adding to_string function.

13 years agoImport fmt:percent_encode.
Tim Fletcher [Thu, 6 Nov 2008 21:49:26 +0000 (21:49 +0000)] 
Import fmt:percent_encode.

13 years agoAdd oauth_uri module.
Tim Fletcher [Thu, 6 Nov 2008 21:45:20 +0000 (21:45 +0000)] 
Add oauth_uri module.

13 years agoMake export attribute style consistent.
Tim Fletcher [Thu, 6 Nov 2008 21:39:53 +0000 (21:39 +0000)] 
Make export attribute style consistent.

13 years agoDefault to application/x-www-form-urlencoded in oauth_http:post.
Tim Fletcher [Thu, 6 Nov 2008 21:36:03 +0000 (21:36 +0000)] 
Default to application/x-www-form-urlencoded in oauth_http:post.

13 years agoMove test code to separate directory; rework Makefile.
Tim Fletcher [Thu, 6 Nov 2008 21:31:07 +0000 (21:31 +0000)] 
Move test code to separate directory; rework Makefile.

13 years agoturn atoms into strings before sorting, since erlang sorts atoms before strings
Paul Bonser [Thu, 6 Nov 2008 03:06:28 +0000 (21:06 -0600)] 
turn atoms into strings before sorting, since erlang sorts atoms before strings

13 years agobuild the header in http:request format
Paul Bonser [Thu, 6 Nov 2008 03:00:39 +0000 (21:00 -0600)] 
build the header in http:request format

13 years agoskip test code
Paul Bonser [Wed, 5 Nov 2008 23:41:45 +0000 (17:41 -0600)] 
skip test code

13 years agoRemove .gitignore file.
Tim Fletcher [Thu, 23 Oct 2008 19:00:29 +0000 (20:00 +0100)] 
Remove .gitignore file.

13 years agoAssorted Makefile tweaks.
Tim Fletcher [Thu, 23 Oct 2008 19:00:04 +0000 (20:00 +0100)] 
Assorted Makefile tweaks.

13 years agoUse correct capitalization for Emakefile.
Tim Fletcher [Thu, 23 Oct 2008 18:39:23 +0000 (19:39 +0100)] 
Use correct capitalization for Emakefile.

13 years agoEnsure there is never an empty URI path component when generating the base string.
Tim Fletcher [Tue, 26 Aug 2008 11:55:30 +0000 (12:55 +0100)] 
Ensure there is never an empty URI path component when generating the base string.

13 years agoAdd oauth_http module.
Tim Fletcher [Sun, 24 Aug 2008 15:39:15 +0000 (16:39 +0100)] 
Add oauth_http module.

13 years agoStyle tweak.
Tim Fletcher [Sun, 24 Aug 2008 15:36:02 +0000 (16:36 +0100)] 
Style tweak.

13 years agoDon't convert response parameter keys to atoms.
Tim Fletcher [Sun, 24 Aug 2008 15:34:31 +0000 (16:34 +0100)] 
Don't convert response parameter keys to atoms.

13 years agoUpdate README.
Tim Fletcher [Sun, 24 Aug 2008 15:25:15 +0000 (16:25 +0100)] 
Update README.

13 years agoAdd new oauth_token_pair module.
Tim Fletcher [Sun, 24 Aug 2008 15:18:41 +0000 (16:18 +0100)] 
Add new oauth_token_pair module.

13 years agoExtract another module from oauth_request.
Tim Fletcher [Sun, 24 Aug 2008 15:01:04 +0000 (16:01 +0100)] 
Extract another module from oauth_request.

13 years agoDon't use atoms to represent the HTTP method at all.
Tim Fletcher [Sun, 24 Aug 2008 14:54:04 +0000 (15:54 +0100)] 
Don't use atoms to represent the HTTP method at all.

13 years agoThe oauth_request module shouldn't need to know about the HMAC-SHA1 base string.
Tim Fletcher [Sun, 24 Aug 2008 14:51:53 +0000 (15:51 +0100)] 
The oauth_request module shouldn't need to know about the HMAC-SHA1 base string.

13 years agoReplace oauth_params:explode with call to string:tokens.
Tim Fletcher [Sun, 24 Aug 2008 14:49:06 +0000 (15:49 +0100)] 
Replace oauth_params:explode with call to string:tokens.

13 years agoRefactor into more modules.
Tim Fletcher [Sun, 24 Aug 2008 14:48:01 +0000 (15:48 +0100)] 
Refactor into more modules.

14 years agoSwitch to using eunit for the unit tests.
Tim Fletcher [Wed, 13 Aug 2008 16:20:00 +0000 (17:20 +0100)] 
Switch to using eunit for the unit tests.

14 years agoSmall correction to the README.
Tim Fletcher [Sun, 22 Jun 2008 21:49:15 +0000 (22:49 +0100)] 
Small correction to the README.

14 years agoFix broken post functions.
Tim Fletcher [Sun, 22 Jun 2008 21:47:58 +0000 (22:47 +0100)] 
Fix broken post functions.

14 years agoAdd functions for extracting actual token and token secret values.
Tim Fletcher [Sun, 22 Jun 2008 21:20:08 +0000 (22:20 +0100)] 
Add functions for extracting actual token and token secret values.

14 years agoRemove implode/2; use string:join/2 instead.
Tim Fletcher [Sun, 15 Jun 2008 13:57:21 +0000 (14:57 +0100)] 
Remove implode/2; use string:join/2 instead.

14 years agoFix bug in URL generation.
Tim Fletcher [Sun, 15 Jun 2008 13:56:45 +0000 (14:56 +0100)] 
Fix bug in URL generation.

14 years agoFix typo.
Tim Fletcher [Tue, 20 May 2008 08:39:07 +0000 (09:39 +0100)] 
Fix typo.

14 years agoAdd functions for generating an Authorization header.
Tim Fletcher [Fri, 16 May 2008 15:15:56 +0000 (16:15 +0100)] 
Add functions for generating an Authorization header.

14 years agoInitial commit.
Tim Fletcher [Fri, 16 May 2008 14:51:38 +0000 (15:51 +0100)] 
Initial commit.