Store previous params in the new map, allow them to be overwritten by request 
params


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

Branch: refs/heads/master
Commit: 52bdff0740194460c8fe31955710f6826d76d0f6
Parents: e265a32
Author: Colm O hEigeartaigh <[email protected]>
Authored: Wed Feb 17 16:19:23 2016 +0000
Committer: Colm O hEigeartaigh <[email protected]>
Committed: Wed Feb 17 16:19:23 2016 +0000

----------------------------------------------------------------------
 .../cxf/rs/security/oauth2/grants/code/JwtRequestCodeFilter.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/52bdff07/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/JwtRequestCodeFilter.java
----------------------------------------------------------------------
diff --git 
a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/JwtRequestCodeFilter.java
 
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/JwtRequestCodeFilter.java
index e05404d..1a82470 100644
--- 
a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/JwtRequestCodeFilter.java
+++ 
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/JwtRequestCodeFilter.java
@@ -83,7 +83,7 @@ public class JwtRequestCodeFilter extends 
OAuthJoseJwtConsumer implements Author
                 throw new SecurityException();
             }
             
-            MultivaluedMap<String, String> newParams = new MetadataMap<String, 
String>();
+            MultivaluedMap<String, String> newParams = new MetadataMap<String, 
String>(params);
             Map<String, Object> claimsMap = claims.asMap();
             for (Map.Entry<String, Object> entry : claimsMap.entrySet()) {
                 String key = entry.getKey();

Reply via email to