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: 36483
Committed: Wed Oct 10 10:00:49 2012 UTC (7 years, 11 months ago) by adouma
Content type: text/plain
File size: 3022 byte(s)
Log Message:
JCR-30: bump to Spring 3.1.2 release

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.xsd
24 http://www.springframework.org/schema/lang http://www.springframework.org/schema/beans/spring-lang.xsd
25 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
26 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
27 http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd">
28
29 <http pattern="/skin/**" security="none"/>
30 <http pattern="/javascript/**" security="none"/>
31 <http pattern="/login/**" security="none"/>
32 <http auto-config="true">
33 <intercept-url pattern="/**" access="ROLE_USER" />
34 <form-login login-page="/login/"
35 default-target-url="/nav/"
36 always-use-default-target="true" />
37 <session-management session-fixation-protection="none">
38 <concurrency-control max-sessions="1" />
39 <!-- When you would prefer to prevent a second login, you can use the following instead: -->
40 <!-- <concurrency-control max-sessions="1" error-if-maximum-exceeded="true" /> -->
41 </session-management>
42 <!-- Using remember me feature by "10.2 Simple Hash-Based Token Approach" -->
43 <remember-me key="consoleKey" />
44 </http>
45
46 <authentication-manager erase-credentials="false">
47 <authentication-provider>
48 <user-service>
49 <user name="admin" password="admin" authorities="ROLE_USER, ROLE_ADMIN" />
50 <user name="editor" password="editor" authorities="ROLE_USER, ROLE_EDITOR" />
51 <user name="author" password="author" authorities="ROLE_USER, ROLE_AUTHOR" />
52 <user name="user" password="user" authorities="ROLE_USER" />
53 </user-service>
54 </authentication-provider>
55 </authentication-manager>
56
57 </beans:beans>

Properties

Name Value
svn:mime-type text/plain