cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1329247 - /cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/AbstractServiceProviderFilter.java
Date Mon, 23 Apr 2012 14:08:56 GMT
Author: coheigea
Date: Mon Apr 23 14:08:56 2012
New Revision: 1329247

URL: http://svn.apache.org/viewvc?rev=1329247&view=rev
Log:
Specify an Assertion Consumer Service URL

Modified:
    cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/AbstractServiceProviderFilter.java

Modified: cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/AbstractServiceProviderFilter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/AbstractServiceProviderFilter.java?rev=1329247&r1=1329246&r2=1329247&view=diff
==============================================================================
--- cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/AbstractServiceProviderFilter.java
(original)
+++ cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/AbstractServiceProviderFilter.java
Mon Apr 23 14:08:56 2012
@@ -52,7 +52,17 @@ public abstract class AbstractServicePro
     
     private String idpServiceAddress;
     private String issuerId;
+    private String assertionConsumerServiceAddress;
     
+    public String getAssertionConsumerServiceAddress() {
+        return assertionConsumerServiceAddress;
+    }
+
+    public void setAssertionConsumerServiceAddress(
+            String assertionConsumerServiceAddress) {
+        this.assertionConsumerServiceAddress = assertionConsumerServiceAddress;
+    }
+
     protected boolean checkSecurityContext(Message m) {
         return false;
     }
@@ -83,10 +93,9 @@ public abstract class AbstractServicePro
                 Collections.singletonList(authnCtxClassRef), null
             );
         
-        UriInfo ui = new UriInfoImpl(m);
         //CHECKSTYLE:OFF
         return SamlpRequestComponentBuilder.createAuthnRequest(
-                ui.getRequestUri().toString(), 
+                assertionConsumerServiceAddress, 
                 false, 
                 false,
                 "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", 



Mime
View raw message