cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: Also return the Assertion that was validated
Date Thu, 03 Aug 2017 13:16:57 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 294029c6f -> 530498a45


Also return the Assertion that was validated


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

Branch: refs/heads/master
Commit: 530498a452a1445d4b7157f521590296ba45ec75
Parents: 294029c
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Thu Aug 3 14:16:41 2017 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Aug 3 14:16:41 2017 +0100

----------------------------------------------------------------------
 .../rs/security/saml/sso/SAMLSSOResponseValidator.java    |  1 +
 .../cxf/rs/security/saml/sso/SSOValidatorResponse.java    | 10 ++++++++++
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/530498a4/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SAMLSSOResponseValidator.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SAMLSSOResponseValidator.java
b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SAMLSSOResponseValidator.java
index 642eccc..5d38be7 100644
--- a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SAMLSSOResponseValidator.java
+++ b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SAMLSSOResponseValidator.java
@@ -158,6 +158,7 @@ public class SAMLSSOResponseValidator {
         Element clonedAssertionElement = (Element)assertionElement.cloneNode(true);
         validatorResponse.setAssertionElement(clonedAssertionElement);
         validatorResponse.setAssertion(DOM2Writer.nodeToString(clonedAssertionElement));
+        validatorResponse.setOpensamlAssertion(validAssertion);
 
         return validatorResponse;
     }

http://git-wip-us.apache.org/repos/asf/cxf/blob/530498a4/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SSOValidatorResponse.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SSOValidatorResponse.java
b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SSOValidatorResponse.java
index ee6d3eb..e5eccd0 100644
--- a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SSOValidatorResponse.java
+++ b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SSOValidatorResponse.java
@@ -21,6 +21,7 @@ package org.apache.cxf.rs.security.saml.sso;
 import java.time.Instant;
 
 import org.w3c.dom.Element;
+import org.opensaml.saml.saml2.core.Assertion;
 
 /**
  * Some information that encapsulates a successful validation by the SAMLSSOResponseValidator
@@ -31,6 +32,7 @@ public class SSOValidatorResponse {
     private String responseId;
     private String assertion;
     private Element assertionElement;
+    private Assertion opensamlAssertion;
 
     public String getAssertion() {
         return assertion;
@@ -71,4 +73,12 @@ public class SSOValidatorResponse {
     public void setCreated(Instant created) {
         this.created = created;
     }
+
+    public Assertion getOpensamlAssertion() {
+        return opensamlAssertion;
+    }
+
+    public void setOpensamlAssertion(Assertion opensamlAssertion) {
+        this.opensamlAssertion = opensamlAssertion;
+    }
 }


Mime
View raw message