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 adding in redirect URL
Date Wed, 15 Apr 2015 15:51:08 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 9a11665bd -> 318bd5fbe


Also adding in redirect URL


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

Branch: refs/heads/3.0.x-fixes
Commit: 318bd5fbeae474aaca1073a05ce784685a4c5b04
Parents: 9a11665
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Apr 15 16:50:31 2015 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Apr 15 16:51:01 2015 +0100

----------------------------------------------------------------------
 .../org/apache/cxf/rs/security/saml/sso/MetadataWriter.java   | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/318bd5fb/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/MetadataWriter.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/MetadataWriter.java
b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/MetadataWriter.java
index 1a9c8be..ce18576 100644
--- a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/MetadataWriter.java
+++ b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/MetadataWriter.java
@@ -148,6 +148,13 @@ public class MetadataWriter {
         writer.writeAttribute("Binding", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST");
         writer.writeEndElement(); // AssertionConsumerService
         
+        writer.writeStartElement("md", "AssertionConsumerService", SSOConstants.SAML2_METADATA_NS);
+        writer.writeAttribute("Location", serviceURL);
+        writer.writeAttribute("index", "0");
+        writer.writeAttribute("isDefault", "true");
+        writer.writeAttribute("Binding", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-REDIRECT");
+        writer.writeEndElement(); // AssertionConsumerService
+        
         /*
         if (protocol.getClaimTypesRequested() != null && !protocol.getClaimTypesRequested().isEmpty())
{
             writer.writeStartElement("md", "AttributeConsumingService", SSOConstants.SAML2_METADATA_NS);


Mime
View raw message