cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Updating ContainerRequestContextImpl to try and make new security context visible to CXF interceptors too
Date Tue, 19 Jul 2016 18:32:04 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes e038e3149 -> a07c7696f


Updating ContainerRequestContextImpl to try and make new security context visible to CXF interceptors
too


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

Branch: refs/heads/3.1.x-fixes
Commit: a07c7696fdb7cf963f2013a98e03d94bf4a3cf7c
Parents: e038e31
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Tue Jul 19 21:30:38 2016 +0300
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Tue Jul 19 21:31:40 2016 +0300

----------------------------------------------------------------------
 .../org/apache/cxf/jaxrs/impl/ContainerRequestContextImpl.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/a07c7696/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ContainerRequestContextImpl.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ContainerRequestContextImpl.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ContainerRequestContextImpl.java
index 9110e3e..1fa9557 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ContainerRequestContextImpl.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ContainerRequestContextImpl.java
@@ -134,6 +134,10 @@ public class ContainerRequestContextImpl extends AbstractRequestContextImpl
     public void setSecurityContext(SecurityContext sc) {
         checkContext();
         m.put(SecurityContext.class, sc);
+        if (sc instanceof org.apache.cxf.security.SecurityContext) {
+            m.put(org.apache.cxf.security.SecurityContext.class, 
+                  (org.apache.cxf.security.SecurityContext)sc);
+        }
     }
 
     private void checkNotPreMatch() {


Mime
View raw message