You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2015/06/02 10:52:13 UTC
git commit: updated refs/heads/saml-production-grade to 3f17bd1
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 <ro...@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 <ro...@shapeblue.com>
Authored: Tue Jun 2 10:51:51 2015 +0200
Committer: Rohit Yadav <ro...@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