Răsfoiți Sursa

Corrected wrong bean reference in cas sample and removed dependence on taglibs. Upgraded ehcache version to match core.

Luke Taylor 17 ani în urmă
părinte
comite
659fe5308a

+ 6 - 13
samples/cas/client/pom.xml

@@ -15,6 +15,11 @@
             <artifactId>spring-security-core</artifactId>
             <version>${project.version}</version>
         </dependency>
+        <dependency>
+            <groupId>org.springframework.security</groupId>
+            <artifactId>spring-security-cas-client</artifactId>
+            <version>${project.version}</version>
+        </dependency>        
         <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-web</artifactId>
@@ -42,21 +47,9 @@
         <dependency>
           <groupId>net.sf.ehcache</groupId>
           <artifactId>ehcache</artifactId>
-          <version>1.2.4</version>
+          <version>1.3.0</version>
           <scope>runtime</scope>
         </dependency>        
-        <dependency>
-            <groupId>javax.servlet</groupId>
-            <artifactId>jstl</artifactId>
-            <version>1.2</version>
-            <scope>runtime</scope>
-        </dependency>
-        <dependency>
-            <groupId>taglibs</groupId>
-            <artifactId>standard</artifactId>
-            <version>1.0.6</version>
-            <scope>runtime</scope>
-        </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-log4j12</artifactId>

+ 1 - 1
samples/cas/client/src/main/webapp/WEB-INF/applicationContext-security.xml

@@ -28,7 +28,7 @@
 
     <bean id="casAuthenticationProvider" class="org.springframework.security.providers.cas.CasAuthenticationProvider">
         <sec:custom-authentication-provider />
-        <property name="userDetailsService" ref="userDetailsService"/>
+        <property name="userDetailsService" ref="userService"/>
         <property name="casProxyDecider">
             <bean class="org.springframework.security.providers.cas.proxy.RejectProxyTickets"/>
         </property>

+ 0 - 6
samples/cas/client/src/main/webapp/secure/extreme/index.jsp

@@ -1,14 +1,8 @@
-<%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags" %>
-
 <html>
 <body>
 <h1>VERY Secure Page</h1>
 This is a protected page. You can only see me if you are a supervisor.
 
-<authz:authorize ifAllGranted="ROLE_SUPERVISOR">
-   You have "ROLE_SUPERVISOR" (this text is surrounded by &lt;authz:authorize&gt; tags).
-</authz:authorize>
-
 <p><a href="../../">Home</a>
 <p><a href="../../j_spring_security_logout">Logout</a>
 </body>