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:14:10 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 741f15d96 -> 6a088ce37


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/6a088ce3
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/6a088ce3
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/6a088ce3

Branch: refs/heads/3.1.x-fixes
Commit: 6a088ce378e8fd558cb82ceb698f66bd5819e437
Parents: 741f15d
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:13:21 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/6a088ce3/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