cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: updated refs/heads/saml-production-grade to 3f17bd1
Date Tue, 02 Jun 2015 08:52:13 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/saml-production-grade e80c6a8a5 -> 3f17bd19a


CLOUDSTACK-8457: add debug statements when going through list of attributes

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3f17bd19
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3f17bd19
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3f17bd19

Branch: refs/heads/saml-production-grade
Commit: 3f17bd19a2913948112480917fbbff464c80d97f
Parents: e80c6a8
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Tue Jun 2 10:51:51 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Tue Jun 2 10:51:51 2015 +0200

----------------------------------------------------------------------
 .../saml2/src/org/apache/cloudstack/saml/SAMLUtils.java           | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3f17bd19/plugins/user-authenticators/saml2/src/org/apache/cloudstack/saml/SAMLUtils.java
----------------------------------------------------------------------
diff --git a/plugins/user-authenticators/saml2/src/org/apache/cloudstack/saml/SAMLUtils.java
b/plugins/user-authenticators/saml2/src/org/apache/cloudstack/saml/SAMLUtils.java
index f9b6b2f..743b6e5 100644
--- a/plugins/user-authenticators/saml2/src/org/apache/cloudstack/saml/SAMLUtils.java
+++ b/plugins/user-authenticators/saml2/src/org/apache/cloudstack/saml/SAMLUtils.java
@@ -116,6 +116,9 @@ public class SAMLUtils {
                 continue;
             }
             for (Attribute attribute : attributeStatement.getAttributes()) {
+                if (attribute.getAttributeValues() != null && attribute.getAttributeValues().size()
> 0) {
+                    s_logger.debug("Current attribute name: " + attribute.getName() + " aka:"
+ attribute.getFriendlyName() + " value:" + attribute.getAttributeValues().get(0).getDOM().getTextContent());
+                }
                 if ((attributeKey.equals(attribute.getName())
                         || attributeKey.equals(attribute.getFriendlyName()))
                         && attribute.getAttributeValues() != null


Mime
View raw message