cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf-fediz git commit: Improving STS logging
Date Thu, 09 Apr 2015 15:12:11 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/1.1.x-fixes d38c1a5a6 -> fe3f064cf


Improving STS logging

Conflicts:
	services/sts/src/main/java/org/apache/cxf/fediz/service/sts/FedizX509DelegationHandler.java


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

Branch: refs/heads/1.1.x-fixes
Commit: fe3f064cfb6d039734c1756e0da093d37f1001e9
Parents: d38c1a5
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Thu Apr 9 16:06:30 2015 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Apr 9 16:12:01 2015 +0100

----------------------------------------------------------------------
 .../apache/cxf/fediz/service/sts/realms/IdentityMapperImpl.java  | 4 +++-
 .../org/apache/cxf/fediz/service/sts/realms/UriRealmParser.java  | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/fe3f064c/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/IdentityMapperImpl.java
----------------------------------------------------------------------
diff --git a/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/IdentityMapperImpl.java
b/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/IdentityMapperImpl.java
index d8c9779..48e2c63 100644
--- a/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/IdentityMapperImpl.java
+++ b/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/IdentityMapperImpl.java
@@ -49,8 +49,10 @@ public class IdentityMapperImpl implements IdentityMapper {
             String name = sourcePrincipal.getName().toLowerCase();
             LOG.info("Principal '" + sourcePrincipal.getName() + "' mapped to '" + name);
             return new CustomTokenPrincipal(name);
+        } else {
+            LOG.info("The source realm of " + sourceRealm + " is unknown");
+            return null;
         }
-        return null;
     }
 
 }

http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/fe3f064c/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/UriRealmParser.java
----------------------------------------------------------------------
diff --git a/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/UriRealmParser.java
b/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/UriRealmParser.java
index 1efe4b6..feebc7d 100644
--- a/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/UriRealmParser.java
+++ b/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/UriRealmParser.java
@@ -57,6 +57,8 @@ public class UriRealmParser implements RealmParser {
             LOG.warn("Unknown realm: " + realm);
             throw new STSException("Unknown realm: " + realm);
         }
+        
+        LOG.debug("URI realm parsed: " + realm);
         return realm;
     }
 


Mime
View raw message