Corrected wrong bean reference in cas sample and removed dependence on taglibs. Upgraded ehcache version to match core.
This commit is contained in:
parent
5187f89fe8
commit
659fe5308a
|
@ -15,6 +15,11 @@
|
||||||
<artifactId>spring-security-core</artifactId>
|
<artifactId>spring-security-core</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.security</groupId>
|
||||||
|
<artifactId>spring-security-cas-client</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-web</artifactId>
|
<artifactId>spring-web</artifactId>
|
||||||
|
@ -42,19 +47,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.sf.ehcache</groupId>
|
<groupId>net.sf.ehcache</groupId>
|
||||||
<artifactId>ehcache</artifactId>
|
<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>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
<bean id="casAuthenticationProvider" class="org.springframework.security.providers.cas.CasAuthenticationProvider">
|
<bean id="casAuthenticationProvider" class="org.springframework.security.providers.cas.CasAuthenticationProvider">
|
||||||
<sec:custom-authentication-provider />
|
<sec:custom-authentication-provider />
|
||||||
<property name="userDetailsService" ref="userDetailsService"/>
|
<property name="userDetailsService" ref="userService"/>
|
||||||
<property name="casProxyDecider">
|
<property name="casProxyDecider">
|
||||||
<bean class="org.springframework.security.providers.cas.proxy.RejectProxyTickets"/>
|
<bean class="org.springframework.security.providers.cas.proxy.RejectProxyTickets"/>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -1,14 +1,8 @@
|
||||||
<%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags" %>
|
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<h1>VERY Secure Page</h1>
|
<h1>VERY Secure Page</h1>
|
||||||
This is a protected page. You can only see me if you are a supervisor.
|
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 <authz:authorize> tags).
|
|
||||||
</authz:authorize>
|
|
||||||
|
|
||||||
<p><a href="../../">Home</a>
|
<p><a href="../../">Home</a>
|
||||||
<p><a href="../../j_spring_security_logout">Logout</a>
|
<p><a href="../../j_spring_security_logout">Logout</a>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue