View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-jcr/console/trunk/resources/src/main/webapp/WEB-INF/applicationContext-security.xml
Revision: 30221
Committed: Wed Sep 14 20:00:10 2011 UTC (10 years, 4 months ago) by wko
Content type: text/plain
Original Path: experimental/hippo-jcr-console/trunk/war/src/main/webapp/WEB-INF/applicationContext-security.xml
File size: 2511 byte(s)
Log Message:
JCR-31: Replacing loginPlugin by spring security integration

File Contents

# Content
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright 2011 Hippo
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS"
13 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 -->
17 <beans:beans xmlns="http://www.springframework.org/schema/security"
18 xmlns:beans="http://www.springframework.org/schema/beans"
19 xmlns:lang="http://www.springframework.org/schema/lang"
20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xmlns:util="http://www.springframework.org/schema/util"
22 xmlns:aop="http://www.springframework.org/schema/aop"
23 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
24 http://www.springframework.org/schema/lang http://www.springframework.org/schema/beans/spring-lang-3.0.xsd
25 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
26 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
27 http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd">
28
29 <http auto-config="true">
30 <intercept-url pattern="/skin/**" filters="none"/>
31 <intercept-url pattern="/login/**" filters="none"/>
32 <intercept-url pattern="/**" access="ROLE_USER" />
33 <form-login login-page="/login/"
34 default-target-url="/nav/"
35 always-use-default-target="true" />
36 </http>
37
38 <authentication-manager>
39 <authentication-provider>
40 <user-service>
41 <user name="admin" password="admin" authorities="ROLE_USER, ROLE_ADMIN" />
42 <user name="editor" password="editor" authorities="ROLE_USER, ROLE_EDITOR" />
43 <user name="author" password="author" authorities="ROLE_USER, ROLE_AUTHOR" />
44 <user name="user" password="user" authorities="ROLE_USER" />
45 </user-service>
46 </authentication-provider>
47 </authentication-manager>
48
49 </beans:beans>

Properties

Name Value
svn:mime-type text/plain