cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: Fixing setting the sec. context
Date Wed, 02 Dec 2015 10:19:12 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes ed682ac7e -> 28b39f586


Fixing setting the sec. context


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

Branch: refs/heads/3.0.x-fixes
Commit: 28b39f586decdd4f8f765b7ea813d28880ed4ed4
Parents: ed682ac
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Dec 2 10:11:06 2015 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Dec 2 10:17:10 2015 +0000

----------------------------------------------------------------------
 .../cxf/rs/security/jose/jaxrs/JwsContainerRequestFilter.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/28b39f58/rt/rs/security/jose-parent/jose-jaxrs/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwsContainerRequestFilter.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/jose-parent/jose-jaxrs/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwsContainerRequestFilter.java
b/rt/rs/security/jose-parent/jose-jaxrs/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwsContainerRequestFilter.java
index 44ba01a..a238384 100644
--- a/rt/rs/security/jose-parent/jose-jaxrs/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwsContainerRequestFilter.java
+++ b/rt/rs/security/jose-parent/jose-jaxrs/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwsContainerRequestFilter.java
@@ -61,7 +61,7 @@ public class JwsContainerRequestFilter extends AbstractJwsReaderProvider
impleme
         }
         
         Principal currentPrincipal = context.getSecurityContext().getUserPrincipal(); 
-        if (currentPrincipal != null && currentPrincipal.getName() != null) {
+        if (currentPrincipal == null || currentPrincipal.getName() == null) {
             SecurityContext securityContext = configureSecurityContext(theSigVerifier);
             if (securityContext != null) {
                 JAXRSUtils.getCurrentMessage().put(SecurityContext.class, securityContext);


Mime
View raw message