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:11:49 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 0c8b46b4b -> 2c95ec23b


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

Branch: refs/heads/master
Commit: 2c95ec23b380a525e9adecbd8a896fe0c1ef87eb
Parents: 0c8b46b
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:11:06 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/2c95ec23/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