Selaa lähdekoodia

Moved cas server and cas sample into common parent folder (samples/cas)

Rob Winch 14 vuotta sitten
vanhempi
commit
11dc3363cc
28 muutettua tiedostoa jossa 50 lisäystä ja 49 poistoa
  1. 2 2
      samples/cas/Readme.txt
  2. 0 0
      samples/cas/sample/cassample.gradle
  3. 3 3
      samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/BaseSpec.groovy
  4. 3 3
      samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/CasSampleProxySpec.groovy
  5. 3 3
      samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/CasSampleSpec.groovy
  6. 3 3
      samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/JettyCasService.groovy
  7. 3 3
      samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/modules/NavModule.groovy
  8. 3 3
      samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/AccessDeniedPage.groovy
  9. 3 3
      samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/ExtremelySecurePage.groovy
  10. 3 3
      samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/HomePage.groovy
  11. 3 3
      samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/LocalLogoutPage.groovy
  12. 3 3
      samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/LoginPage.groovy
  13. 3 3
      samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/ProxyTicketSamplePage.groovy
  14. 3 3
      samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/SecurePage.groovy
  15. 0 0
      samples/cas/sample/src/integration-test/resources/logback-test.xml
  16. 3 3
      samples/cas/sample/src/main/java/org/springframework/security/samples/cas/web/ProxyTicketSampleServlet.java
  17. 0 0
      samples/cas/sample/src/main/webapp/403.jsp
  18. 3 3
      samples/cas/sample/src/main/webapp/WEB-INF/applicationContext-security.xml
  19. 0 0
      samples/cas/sample/src/main/webapp/WEB-INF/web.xml
  20. 0 0
      samples/cas/sample/src/main/webapp/cas-logout.jsp
  21. 0 0
      samples/cas/sample/src/main/webapp/casfailed.jsp
  22. 0 0
      samples/cas/sample/src/main/webapp/index.jsp
  23. 0 0
      samples/cas/sample/src/main/webapp/secure/extreme/index.jsp
  24. 1 1
      samples/cas/sample/src/main/webapp/secure/index.jsp
  25. 0 0
      samples/cas/server/casserver.gradle
  26. 0 0
      samples/cas/server/src/main/webapp/WEB-INF/classes/log4j.xml
  27. 0 0
      samples/cas/server/src/main/webapp/WEB-INF/spring-configuration/zzzhttpClientCustomization.xml
  28. 5 4
      settings.gradle

+ 2 - 2
samples/cas/Readme.txt

@@ -1,8 +1,8 @@
 To run a CAS server and client application, just execute the command
 
-./gradlew cas
+../../../gradlew cas
 
-from the project root directory. You should then be able to point your browser at
+from samples/cas/sample. You should then be able to point your browser at
 
 https://localhost:8443/cas-sample/
 

+ 0 - 0
samples/cas/cas.gradle → samples/cas/sample/cassample.gradle


+ 3 - 3
samples/cas/src/integration-test/groovy/org/springframework/security/samples/cas/BaseSpec.groovy → samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/BaseSpec.groovy

@@ -1,12 +1,12 @@
 /*
  * Copyright 2011 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 3 - 3
samples/cas/src/integration-test/groovy/org/springframework/security/samples/cas/CasSampleProxySpec.groovy → samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/CasSampleProxySpec.groovy

@@ -1,12 +1,12 @@
 /*
  * Copyright 2011 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 3 - 3
samples/cas/src/integration-test/groovy/org/springframework/security/samples/cas/CasSampleSpec.groovy → samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/CasSampleSpec.groovy

@@ -1,12 +1,12 @@
 /*
  * Copyright 2011 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 3 - 3
samples/cas/src/integration-test/groovy/org/springframework/security/samples/cas/JettyCasService.groovy → samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/JettyCasService.groovy

@@ -1,12 +1,12 @@
 /*
  * Copyright 2011 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 3 - 3
samples/cas/src/integration-test/groovy/org/springframework/security/samples/cas/modules/NavModule.groovy → samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/modules/NavModule.groovy

@@ -1,12 +1,12 @@
 /*
  * Copyright 2011 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 3 - 3
samples/cas/src/integration-test/groovy/org/springframework/security/samples/cas/pages/AccessDeniedPage.groovy → samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/AccessDeniedPage.groovy

@@ -1,12 +1,12 @@
 /*
  * Copyright 2011 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 3 - 3
samples/cas/src/integration-test/groovy/org/springframework/security/samples/cas/pages/ExtremelySecurePage.groovy → samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/ExtremelySecurePage.groovy

@@ -1,12 +1,12 @@
 /*
  * Copyright 2011 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 3 - 3
samples/cas/src/integration-test/groovy/org/springframework/security/samples/cas/pages/HomePage.groovy → samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/HomePage.groovy

@@ -1,12 +1,12 @@
 /*
  * Copyright 2011 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 3 - 3
samples/cas/src/integration-test/groovy/org/springframework/security/samples/cas/pages/LocalLogoutPage.groovy → samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/LocalLogoutPage.groovy

@@ -1,12 +1,12 @@
 /*
  * Copyright 2011 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 3 - 3
samples/cas/src/integration-test/groovy/org/springframework/security/samples/cas/pages/LoginPage.groovy → samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/LoginPage.groovy

@@ -1,12 +1,12 @@
 /*
  * Copyright 2011 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 3 - 3
samples/cas/src/integration-test/groovy/org/springframework/security/samples/cas/pages/ProxyTicketSamplePage.groovy → samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/ProxyTicketSamplePage.groovy

@@ -1,12 +1,12 @@
 /*
  * Copyright 2011 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 3 - 3
samples/cas/src/integration-test/groovy/org/springframework/security/samples/cas/pages/SecurePage.groovy → samples/cas/sample/src/integration-test/groovy/org/springframework/security/samples/cas/pages/SecurePage.groovy

@@ -1,12 +1,12 @@
 /*
  * Copyright 2011 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 0 - 0
samples/cas/src/integration-test/resources/logback-test.xml → samples/cas/sample/src/integration-test/resources/logback-test.xml


+ 3 - 3
samples/cas/src/main/java/org/springframework/security/samples/cas/web/ProxyTicketSampleServlet.java → samples/cas/sample/src/main/java/org/springframework/security/samples/cas/web/ProxyTicketSampleServlet.java

@@ -1,12 +1,12 @@
 /*
  * Copyright 2011 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 0 - 0
samples/cas/src/main/webapp/403.jsp → samples/cas/sample/src/main/webapp/403.jsp


+ 3 - 3
samples/cas/src/main/webapp/WEB-INF/applicationContext-security.xml → samples/cas/sample/src/main/webapp/WEB-INF/applicationContext-security.xml

@@ -6,9 +6,9 @@
     xmlns:context="http://www.springframework.org/schema/context"
     xmlns:util="http://www.springframework.org/schema/util"
     xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd
-		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
-		http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
-		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
+        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
+        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
+        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
 
     <http entry-point-ref="casEntryPoint" use-expressions="true">
         <intercept-url pattern="/" access="permitAll"/>

+ 0 - 0
samples/cas/src/main/webapp/WEB-INF/web.xml → samples/cas/sample/src/main/webapp/WEB-INF/web.xml


+ 0 - 0
samples/cas/src/main/webapp/cas-logout.jsp → samples/cas/sample/src/main/webapp/cas-logout.jsp


+ 0 - 0
samples/cas/src/main/webapp/casfailed.jsp → samples/cas/sample/src/main/webapp/casfailed.jsp


+ 0 - 0
samples/cas/src/main/webapp/index.jsp → samples/cas/sample/src/main/webapp/index.jsp


+ 0 - 0
samples/cas/src/main/webapp/secure/extreme/index.jsp → samples/cas/sample/src/main/webapp/secure/extreme/index.jsp


+ 1 - 1
samples/cas/src/main/webapp/secure/index.jsp → samples/cas/sample/src/main/webapp/secure/index.jsp

@@ -5,7 +5,7 @@
 or if you've authenticated this session.</p>
 
 <%if (request.isUserInRole("ROLE_SUPERVISOR")) { %>
-	<p>You are a supervisor! You can therefore see the <a href="extreme/index.jsp">extremely secure page</a>.</p>
+    <p>You are a supervisor! You can therefore see the <a href="extreme/index.jsp">extremely secure page</a>.</p>
 <% } %>
 
 <p><a href="../">Home</a>

+ 0 - 0
samples/casserver/casserver.gradle → samples/cas/server/casserver.gradle


+ 0 - 0
samples/casserver/src/main/webapp/WEB-INF/classes/log4j.xml → samples/cas/server/src/main/webapp/WEB-INF/classes/log4j.xml


+ 0 - 0
samples/casserver/src/main/webapp/WEB-INF/spring-configuration/zzzhttpClientCustomization.xml → samples/cas/server/src/main/webapp/WEB-INF/spring-configuration/zzzhttpClientCustomization.xml


+ 5 - 4
settings.gradle

@@ -19,8 +19,8 @@ def String[] samples = [
     'gae',
     'dms',
     'preauth',
-    'casserver',
-    'cas',
+    'cas/server',
+    'cas/sample',
     'ldap',
     'jaas'
 ]
@@ -42,8 +42,9 @@ include samples
 
 samples.each {name ->
     p = findProject(":${name}")
-    p.name = "spring-security-samples-${name}"
-    p.buildFileName = "${name}.gradle"
+    def fullName = name.replaceAll('/','')
+    p.name = "spring-security-samples-${fullName}"
+    p.buildFileName = "${fullName}.gradle"
     p.projectDir = new File(settingsDir, "samples/${name}");
 }