Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(947)

Issue 28075: OAuth body signing fixes

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 1 month ago by louiscryan
Modified:
15 years, 1 month ago
Reviewers:
beaton, shindig.remailer
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Description

Add support for the oauth_body_hash signing proposal to OAuth Add support for legacy body signing to remain compatible with opensocial client libraries Fix consistency issues in OAuth handlers and add tests!

Patch Set 1 #

Total comments: 25

Patch Set 2 : Updated patch #

Total comments: 25

Patch Set 3 : Updated patch #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+931 lines, -169 lines) Patch
../trunk/java/common/conf/shindig.properties View 1 chunk +1 line, -0 lines 0 comments Download
../trunk/java/common/src/main/java/org/apache/shindig/auth/AuthenticationHandler.java View 1 2 4 chunks +13 lines, -3 lines 0 comments Download
../trunk/java/common/src/main/java/org/apache/shindig/auth/AuthenticationServletFilter.java View 1 2 5 chunks +68 lines, -5 lines 0 comments Download
../trunk/java/common/src/main/java/org/apache/shindig/auth/UrlParameterAuthenticationHandler.java View 4 chunks +6 lines, -4 lines 0 comments Download
../trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth/OAuthCommandLine.java View 1 2 6 chunks +23 lines, -6 lines 0 comments Download
../trunk/java/social-api/src/main/java/org/apache/shindig/social/core/oauth/AuthenticationHandlerProvider.java View 1 chunk +1 line, -2 lines 0 comments Download
../trunk/java/social-api/src/main/java/org/apache/shindig/social/core/oauth/OAuthAuthenticationHandler.java View 1 2 2 chunks +161 lines, -38 lines 1 comment Download
../trunk/java/social-api/src/main/java/org/apache/shindig/social/core/oauth/OAuthConsumerRequestAuthenticationHandler.java View 1 1 chunk +0 lines, -103 lines 0 comments Download
../trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/oauth/OAuthEntry.java View 1 1 chunk +3 lines, -3 lines 0 comments Download
../trunk/java/social-api/src/test/java/org/apache/shindig/social/core/oauth/AuthenticationProviderHandlerTest.java View 3 chunks +5 lines, -5 lines 0 comments Download
../trunk/java/social-api/src/test/java/org/apache/shindig/social/core/oauth/FakeOAuthRequest.java View 1 2 1 chunk +187 lines, -0 lines 0 comments Download
../trunk/java/social-api/src/test/java/org/apache/shindig/social/core/oauth/OAuthAuthenticationHanderTest.java View 1 2 1 chunk +463 lines, -0 lines 0 comments Download

Messages

Total messages: 8
louiscryan
15 years, 1 month ago (2009-03-20 21:18:18 UTC) #1
beaton
I haven't really looked at the tests. I'll review them once you make a decision ...
15 years, 1 month ago (2009-03-20 23:13:04 UTC) #2
louiscryan
http://codereview.appspot.com/28075/diff/1/7 File ../trunk/java/common/src/main/java/org/apache/shindig/auth/AuthenticationServletFilter.java (right): http://codereview.appspot.com/28075/diff/1/7#newcode120 Line 120: static class StashedBodyRequestwrapper extends HttpServletRequestWrapper { On 2009/03/20 ...
15 years, 1 month ago (2009-03-23 23:16:59 UTC) #3
louiscryan
Updated patch
15 years, 1 month ago (2009-03-23 23:17:20 UTC) #4
beaton
http://codereview.appspot.com/28075/diff/23/1015 File ../trunk/java/common/src/main/java/org/apache/shindig/auth/AuthenticationServletFilter.java (right): http://codereview.appspot.com/28075/diff/23/1015#newcode124 Line 124: final HttpServletRequest wrapped; don't need this variable http://codereview.appspot.com/28075/diff/23/1010 ...
15 years, 1 month ago (2009-03-24 15:12:33 UTC) #5
louiscryan
http://codereview.appspot.com/28075/diff/23/1015 File ../trunk/java/common/src/main/java/org/apache/shindig/auth/AuthenticationServletFilter.java (right): http://codereview.appspot.com/28075/diff/23/1015#newcode124 Line 124: final HttpServletRequest wrapped; On 2009/03/24 15:12:34, beaton wrote: ...
15 years, 1 month ago (2009-03-24 18:52:59 UTC) #6
louiscryan
Updated patch
15 years, 1 month ago (2009-03-24 18:53:29 UTC) #7
beaton
15 years, 1 month ago (2009-03-24 20:26:23 UTC) #8
Looks good to me.  Thanks.

http://codereview.appspot.com/28075/diff/5001/5008
File
../trunk/java/social-api/src/main/java/org/apache/shindig/social/core/oauth/OAuthAuthenticationHandler.java
(right):

http://codereview.appspot.com/28075/diff/5001/5008#newcode144
Line 144: throw new InvalidAuthenticationException("No oauth entry for token",
null);
Should include token in exception somewhere, probably in message.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b