Browse Source

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

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

4
samples/cas/Readme.txt

@ -1,8 +1,8 @@ @@ -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
samples/cas/cas.gradle → samples/cas/sample/cassample.gradle

6
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 @@ @@ -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.

6
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 @@ @@ -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.

6
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 @@ @@ -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.

6
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 @@ @@ -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.

6
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 @@ @@ -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.

6
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 @@ @@ -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.

6
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 @@ @@ -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.

6
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 @@ @@ -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.

6
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 @@ @@ -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.

6
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 @@ @@ -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.

6
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 @@ @@ -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.

6
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 @@ @@ -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
samples/cas/src/integration-test/resources/logback-test.xml → samples/cas/sample/src/integration-test/resources/logback-test.xml

6
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 @@ @@ -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
samples/cas/src/main/webapp/403.jsp → samples/cas/sample/src/main/webapp/403.jsp

6
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 @@ @@ -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
samples/cas/src/main/webapp/WEB-INF/web.xml → samples/cas/sample/src/main/webapp/WEB-INF/web.xml

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

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

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

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

2
samples/cas/src/main/webapp/secure/index.jsp → samples/cas/sample/src/main/webapp/secure/index.jsp

@ -5,7 +5,7 @@ @@ -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
samples/casserver/casserver.gradle → samples/cas/server/casserver.gradle

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

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

9
settings.gradle

@ -19,8 +19,8 @@ def String[] samples = [ @@ -19,8 +19,8 @@ def String[] samples = [
'gae',
'dms',
'preauth',
'casserver',
'cas',
'cas/server',
'cas/sample',
'ldap',
'jaas'
]
@ -42,8 +42,9 @@ include samples @@ -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}");
}

Loading…
Cancel
Save