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: Updating logging
Date Tue, 01 Mar 2016 12:20:18 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master c1d860563 -> bf111a46b


Updating logging


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

Branch: refs/heads/master
Commit: bf111a46b25b5a138811776b83456029f1d7f8ce
Parents: c1d8605
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Tue Mar 1 12:20:07 2016 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Tue Mar 1 12:20:07 2016 +0000

----------------------------------------------------------------------
 .../service/idp/protocols/TrustedIdpOIDCProtocolHandler.java    | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/bf111a46/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/protocols/TrustedIdpOIDCProtocolHandler.java
----------------------------------------------------------------------
diff --git a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/protocols/TrustedIdpOIDCProtocolHandler.java
b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/protocols/TrustedIdpOIDCProtocolHandler.java
index 9075012..6fb33da 100644
--- a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/protocols/TrustedIdpOIDCProtocolHandler.java
+++ b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/protocols/TrustedIdpOIDCProtocolHandler.java
@@ -456,10 +456,15 @@ public class TrustedIdpOIDCProtocolHandler implements TrustedIdpProtocolHandler
         
         // Subject
         String subjectName = getProperty(trustedIdp, SUBJECT_CLAIM);
+        LOG.debug("Trying to extract subject name using the claim name {}", subjectName);
         if (subjectName == null || token.getClaim(subjectName) == null) {
+            LOG.debug("No claim available in the token for {}", subjectName);
             subjectName = "preferred_username";
+            LOG.debug("Falling back to use subject claim name {}", subjectName);
             if (subjectName == null || token.getClaim(subjectName) == null) {
                 subjectName = JwtConstants.CLAIM_SUBJECT;
+                LOG.debug("No claim available in the token for preferred_username. "
+                          + "Falling back to use {}", subjectName);
             }
         }
         


Mime
View raw message