cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Minor update to OAuth2 digest code verifier
Date Fri, 19 Dec 2014 15:49:22 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 255863b9a -> 8fc6bc02f


Minor update to OAuth2 digest code verifier


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/8fc6bc02
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/8fc6bc02
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/8fc6bc02

Branch: refs/heads/3.0.x-fixes
Commit: 8fc6bc02f6bc0e7a900a540ada7d3c2a29fbbd4f
Parents: 255863b
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Thu Dec 18 13:07:51 2014 +0000
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Fri Dec 19 15:49:01 2014 +0000

----------------------------------------------------------------------
 .../cxf/rs/security/oauth2/grants/code/DigestCodeVerifier.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/8fc6bc02/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/DigestCodeVerifier.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/DigestCodeVerifier.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/DigestCodeVerifier.java
index 371e907..61661e9 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/DigestCodeVerifier.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/DigestCodeVerifier.java
@@ -26,9 +26,7 @@ public class DigestCodeVerifier implements CodeVerifierTransformer {
     public String transformCodeVerifier(String codeVerifier) {
         byte[] digest = MessageDigestUtils.createDigest(codeVerifier, 
                                                         MessageDigestUtils.ALGO_SHA_256);
-        int length = digest.length > 128 / 8 ? 128 / 8 : digest.length;
-        
-        return Base64UrlUtility.encodeChunk(digest, 0, length);
+        return Base64UrlUtility.encode(digest);
     }
 
     


Mime
View raw message