Prechádzať zdrojové kódy

Updated clean plugin to 2.2

Luke Taylor 17 rokov pred
rodič
commit
0cf745b85f

+ 1 - 1
pom.xml

@@ -249,7 +249,7 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-clean-plugin</artifactId>
-                <version>2.1.1</version>
+                <version>2.2</version>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>

+ 12 - 6
samples/tutorial/src/main/webapp/WEB-INF/applicationContext-security-ns.xml

@@ -18,18 +18,24 @@
 		-->
 	</global-method-security>
 
-    <http auto-config="true">
-        <intercept-url pattern="/secure/extreme/**" access="ROLE_SUPERVISOR"/>
-        <intercept-url pattern="/secure/**" access="IS_AUTHENTICATED_REMEMBERED" />
+    <http>
+        <intercept-url pattern="/secure/extreme/**" access="ROLE_SUPERVISOR" requires-channel="https"/>
+        <intercept-url pattern="/secure/**" access="IS_AUTHENTICATED_REMEMBERED" requires-channel="https"/>
 		<!-- Disable web URI authorization, as we're using <global-method-security> and have @Secured the services layer instead
         <intercept-url pattern="/listAccounts.html" access="IS_AUTHENTICATED_REMEMBERED" />
         <intercept-url pattern="/post.html" access="ROLE_TELLER" />
         -->
         <intercept-url pattern="/**" access="IS_AUTHENTICATED_ANONYMOUSLY" />
 <!--
-    Uncomment to enable X509 client authentication support
-        <x509 /> 
--->
+    Uncomment to enable X509 client authentication support -->
+        <x509 />
+        <anonymous />
+        <logout /> 
+<!--         
+        <port-mappings>
+            <port-mapping http="8080" https="8443"/>
+        </port-mappings>
+ -->
 
         <!-- All of this is unnecessary if auto-config="true"
         <form-login />