|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (4)
View Page HistoryComment the "Classical authent" section and uncomment the "CAS authent" section. An exemple *petals-view-security.xml* is provided here :
{code:lang=xml}<?xml version="1.0" encoding="UTF-8"?>
<!-- {code:lang=xml}
Petals View - Functional Supervision. Copyright (c) 2010 EBM
Websourcing, http://www.ebmwebsourcing.com/ This library is free
software; you can redistribute it and/or modify it under the terms of
the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your
option) any later version. This library is distributed in the hope
that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
-->
Websourcing, http://www.ebmwebsourcing.com/ This library is free
software; you can redistribute it and/or modify it under the terms of
the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your
option) any later version. This library is distributed in the hope
that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
-->
<beans xmlns:security="http://www.springframework.org/schema/security"
xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<!--
<security:global-method-security secured-annotations="enabled" />
-->
<!--
########################## Classical authent
##########################
-->
<!-- <bean name="myUserDetailsService"
class="com.ebmwebsourcing.webcommons.user.auth.MyUserDetailsService">
<property name="userManager">
<ref bean="userManager" />
</property>
</bean>
<security:http>
<security:intercept-url pattern="/petals-view/pg/pages/Welcome"
access="IS_AUTHENTICATED_ANONYMOUSLY" />
<security:intercept-url pattern="/petals-view/**"
access="ROLE_AUTH" />
<security:form-login default-target-url="/petals-view/pg/pages/Welcome"
login-page="/petals-view/pg/pages/Welcome"
authentication-failure-url="/petals-view/pg/pages/Welcome?login_error=1" />
<security:anonymous />
<security:logout logout-success-url="/petals-view/pg/pages/Welcome" />
<security:remember-me />
</security:http>
<security:authentication-manager>
<security:authentication-provider
user-service-ref="myUserDetailsService">
<security:password-encoder hash="md5" />
</security:authentication-provider>
</security:authentication-manager> -->
<!--
########################## End of Classical authent
##########################
-->
<!--
-->
<!--
########################## Classical authent
##########################
-->
<!-- <bean name="myUserDetailsService"
class="com.ebmwebsourcing.webcommons.user.auth.MyUserDetailsService">
<property name="userManager">
<ref bean="userManager" />
</property>
</bean>
<security:http>
<security:intercept-url pattern="/petals-view/pg/pages/Welcome"
access="IS_AUTHENTICATED_ANONYMOUSLY" />
<security:intercept-url pattern="/petals-view/**"
access="ROLE_AUTH" />
<security:form-login default-target-url="/petals-view/pg/pages/Welcome"
login-page="/petals-view/pg/pages/Welcome"
authentication-failure-url="/petals-view/pg/pages/Welcome?login_error=1" />
<security:anonymous />
<security:logout logout-success-url="/petals-view/pg/pages/Welcome" />
<security:remember-me />
</security:http>
<security:authentication-manager>
<security:authentication-provider
user-service-ref="myUserDetailsService">
<security:password-encoder hash="md5" />
</security:authentication-provider>
</security:authentication-manager> -->
<!--
########################## End of Classical authent
##########################
-->
<!--
########################## CAS authent
##########################
##########################