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:50:48 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 04fdfc691 -> 8af5f562d


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/8af5f562
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/8af5f562
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/8af5f562

Branch: refs/heads/master
Commit: 8af5f562d3275ed581bad92c8306eb7bbdfc982d
Parents: 04fdfc6
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:50:31 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/8af5f562/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