Compare commits
8 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
184f04405b | |
|
|
54a977a98d | |
|
|
ec5bbb02b8 | |
|
|
4a9998102f | |
|
|
32772f70c3 | |
|
|
a1a9630f5d | |
|
|
8afb55e2b2 | |
|
|
db5963cf56 |
|
|
@ -0,0 +1,3 @@
|
||||||
|
**/target
|
||||||
|
.idea/
|
||||||
|
*.iml
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.jasig.cas.client</groupId>
|
<groupId>org.jasig.cas.client</groupId>
|
||||||
<version>3.2.1</version>
|
<version>3.2.3-SNAPSHOT</version>
|
||||||
<artifactId>cas-client</artifactId>
|
<artifactId>cas-client</artifactId>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ public abstract class AbstractUrlBasedTicketValidator implements TicketValidator
|
||||||
|
|
||||||
log.debug("Placing URL parameters in map.");
|
log.debug("Placing URL parameters in map.");
|
||||||
urlParameters.put("ticket", ticket);
|
urlParameters.put("ticket", ticket);
|
||||||
urlParameters.put("service", encodeUrl(serviceUrl));
|
urlParameters.put("service", serviceUrl);
|
||||||
|
|
||||||
if (this.renew) {
|
if (this.renew) {
|
||||||
urlParameters.put("renew", "true");
|
urlParameters.put("renew", "true");
|
||||||
|
|
@ -148,7 +148,8 @@ public abstract class AbstractUrlBasedTicketValidator implements TicketValidator
|
||||||
buffer.append(i++ == 0 ? "?" : "&");
|
buffer.append(i++ == 0 ? "?" : "&");
|
||||||
buffer.append(key);
|
buffer.append(key);
|
||||||
buffer.append("=");
|
buffer.append("=");
|
||||||
buffer.append(value);
|
final String encodedValue = encodeUrl(value);
|
||||||
|
buffer.append(encodedValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ public class Cas20ServiceTicketValidator extends AbstractCasProtocolUrlBasedTick
|
||||||
* @param urlParameters the Map containing the existing parameters to send to the server.
|
* @param urlParameters the Map containing the existing parameters to send to the server.
|
||||||
*/
|
*/
|
||||||
protected final void populateUrlAttributeMap(final Map<String, String> urlParameters) {
|
protected final void populateUrlAttributeMap(final Map<String, String> urlParameters) {
|
||||||
urlParameters.put("pgtUrl", encodeUrl(this.proxyCallbackUrl));
|
urlParameters.put("pgtUrl", this.proxyCallbackUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getUrlSuffix() {
|
protected String getUrlSuffix() {
|
||||||
|
|
|
||||||
|
|
@ -19,14 +19,11 @@
|
||||||
|
|
||||||
package org.jasig.cas.client.validation;
|
package org.jasig.cas.client.validation;
|
||||||
|
|
||||||
|
import java.io.UnsupportedEncodingException;
|
||||||
import org.jasig.cas.client.PublicTestHttpServer;
|
import org.jasig.cas.client.PublicTestHttpServer;
|
||||||
import org.junit.AfterClass;
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.io.UnsupportedEncodingException;
|
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -89,4 +86,15 @@ public final class Cas10TicketValidatorTests extends AbstractTicketValidatorTest
|
||||||
// expected
|
// expected
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void urlEncodedValues() {
|
||||||
|
final String ticket = "ST-1-owKEOtYJjg77iHcCQpkl-cas01.example.org%26%73%65%72%76%69%63%65%3d%68%74%74%70%25%33%41%25%32%46%25%32%46%31%32%37%2e%30%2e%30%2e%31%25%32%46%62%6f%72%69%6e%67%25%32%46%23";
|
||||||
|
final String service = "foobar";
|
||||||
|
final String url = this.ticketValidator.constructValidationUrl(ticket, service);
|
||||||
|
|
||||||
|
final String encodedValue = this.ticketValidator.encodeUrl(ticket);
|
||||||
|
assertTrue(url.contains(encodedValue));
|
||||||
|
assertFalse(url.contains(ticket));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,7 @@ package org.jasig.cas.client.validation;
|
||||||
|
|
||||||
import org.jasig.cas.client.PublicTestHttpServer;
|
import org.jasig.cas.client.PublicTestHttpServer;
|
||||||
import org.jasig.cas.client.util.CommonUtils;
|
import org.jasig.cas.client.util.CommonUtils;
|
||||||
import org.junit.After;
|
import org.junit.*;
|
||||||
import org.junit.AfterClass;
|
|
||||||
import org.junit.Before;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
@ -36,6 +33,7 @@ import static org.junit.Assert.*;
|
||||||
* @version $Revision$ $Date$
|
* @version $Revision$ $Date$
|
||||||
* @since 3.1.3
|
* @since 3.1.3
|
||||||
*/
|
*/
|
||||||
|
@Ignore
|
||||||
public final class Saml11TicketValidatorTests extends AbstractTicketValidatorTests {
|
public final class Saml11TicketValidatorTests extends AbstractTicketValidatorTests {
|
||||||
|
|
||||||
private Saml11TicketValidator validator;
|
private Saml11TicketValidator validator;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.jasig.cas.client</groupId>
|
<groupId>org.jasig.cas.client</groupId>
|
||||||
<version>3.2.1</version>
|
<version>3.2.3-SNAPSHOT</version>
|
||||||
<artifactId>cas-client</artifactId>
|
<artifactId>cas-client</artifactId>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
@ -530,7 +530,7 @@
|
||||||
<repository>
|
<repository>
|
||||||
<id>atlassian</id>
|
<id>atlassian</id>
|
||||||
<name>Atlassian Repository</name>
|
<name>Atlassian Repository</name>
|
||||||
<url>http://repository.atlassian.com/maven2/</url>
|
<url>http://maven.atlassian.com/repository/public/</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.jasig.cas.client</groupId>
|
<groupId>org.jasig.cas.client</groupId>
|
||||||
<version>3.2.1</version>
|
<version>3.2.3-SNAPSHOT</version>
|
||||||
<artifactId>cas-client</artifactId>
|
<artifactId>cas-client</artifactId>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>cas-client</artifactId>
|
<artifactId>cas-client</artifactId>
|
||||||
<groupId>org.jasig.cas.client</groupId>
|
<groupId>org.jasig.cas.client</groupId>
|
||||||
<version>3.2.1</version>
|
<version>3.2.3-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>cas-client</artifactId>
|
<artifactId>cas-client</artifactId>
|
||||||
<groupId>org.jasig.cas.client</groupId>
|
<groupId>org.jasig.cas.client</groupId>
|
||||||
<version>3.2.1</version>
|
<version>3.2.3-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>cas-client</artifactId>
|
<artifactId>cas-client</artifactId>
|
||||||
<groupId>org.jasig.cas.client</groupId>
|
<groupId>org.jasig.cas.client</groupId>
|
||||||
<version>3.2.1</version>
|
<version>3.2.3-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>cas-client</artifactId>
|
<artifactId>cas-client</artifactId>
|
||||||
<groupId>org.jasig.cas.client</groupId>
|
<groupId>org.jasig.cas.client</groupId>
|
||||||
<version>3.2.1</version>
|
<version>3.2.3-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<name>Jasig CAS Client for Java - Distributed Proxy Storage Support: EhCache</name>
|
<name>Jasig CAS Client for Java - Distributed Proxy Storage Support: EhCache</name>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>cas-client</artifactId>
|
<artifactId>cas-client</artifactId>
|
||||||
<groupId>org.jasig.cas.client</groupId>
|
<groupId>org.jasig.cas.client</groupId>
|
||||||
<version>3.2.1</version>
|
<version>3.2.3-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
@ -21,13 +21,12 @@
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- available from http://code.google.com/p/spymemcached/ -->
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>spy</groupId>
|
<groupId>net.spy</groupId>
|
||||||
<artifactId>memcached</artifactId>
|
<artifactId>spymemcached</artifactId>
|
||||||
<version>2.5</version>
|
<version>2.11.4</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>provided</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
8
pom.xml
8
pom.xml
|
|
@ -6,7 +6,7 @@
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.jasig.cas.client</groupId>
|
<groupId>org.jasig.cas.client</groupId>
|
||||||
<version>3.2.1</version>
|
<version>3.2.3-SNAPSHOT</version>
|
||||||
<artifactId>cas-client</artifactId>
|
<artifactId>cas-client</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>Jasig CAS Client for Java</name>
|
<name>Jasig CAS Client for Java</name>
|
||||||
|
|
@ -19,9 +19,9 @@
|
||||||
<url>http://www.Jasig.org/issues</url>
|
<url>http://www.Jasig.org/issues</url>
|
||||||
</issueManagement>
|
</issueManagement>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:svn:https://source.jasig.org/cas-clients/java-client/tags/cas-client-3.2.1</connection>
|
<connection>scm:git:git@github.com:Jasig/java-cas-client.git</connection>
|
||||||
<developerConnection>scm:svn:https://source.jasig.org/cas-clients/java-client/tags/cas-client-3.2.1</developerConnection>
|
<developerConnection>scm:git:git@github.com:Jasig/java-cas-client.git</developerConnection>
|
||||||
<url>https://source.jasig.org/cas-clients/java-client/tags/cas-client-3.2.1</url>
|
<url>https://github.com/Jasig/java-cas-client/tree/3.2.x</url>
|
||||||
</scm>
|
</scm>
|
||||||
<inceptionYear>2006</inceptionYear>
|
<inceptionYear>2006</inceptionYear>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue