|
@@ -14,7 +14,7 @@ http://www.springframework.org/schema/security http://www.springframework.org/sc
|
|
<!-- ======================== AUTHENTICATION ======================= -->
|
|
<!-- ======================== AUTHENTICATION ======================= -->
|
|
|
|
|
|
<!-- makes the filter, but does little else, as it auto-detects everything -->
|
|
<!-- makes the filter, but does little else, as it auto-detects everything -->
|
|
- <security:authentication-remember-me-filter id="rememberMeFilter" rememberMeServicesBeanRef="rememberMeServices" />
|
|
|
|
|
|
+ <security:authentication-remember-me-filter id="rememberMeFilter" />
|
|
|
|
|
|
<!-- services should auto-detect UserDetails from app ctx if principalRepository was not specified; -->
|
|
<!-- services should auto-detect UserDetails from app ctx if principalRepository was not specified; -->
|
|
<!-- key is optional; if unspecified, in the NamespaceHandler pick a rnd int and use for all unspecified key properties for acegi beans -->
|
|
<!-- key is optional; if unspecified, in the NamespaceHandler pick a rnd int and use for all unspecified key properties for acegi beans -->
|
|
@@ -28,29 +28,16 @@ http://www.springframework.org/schema/security http://www.springframework.org/sc
|
|
If ProviderManager.setProvider(List) is never called, auto-detect all AuthenticationProviders from app ctx, using Ordered to resolve their order
|
|
If ProviderManager.setProvider(List) is never called, auto-detect all AuthenticationProviders from app ctx, using Ordered to resolve their order
|
|
Every authentication mechanism OR provider must start with security:authentication-something
|
|
Every authentication mechanism OR provider must start with security:authentication-something
|
|
Use appropriate attrs and elements depending on provider or mechanism
|
|
Use appropriate attrs and elements depending on provider or mechanism
|
|
- -->
|
|
|
|
|
|
+ -->
|
|
<!-- make it optional, if not supplied autodetect all auth-providers from app ctx, using Ordered to resolve their order -->
|
|
<!-- make it optional, if not supplied autodetect all auth-providers from app ctx, using Ordered to resolve their order -->
|
|
- <security:authentication-mechanism id="authenticationManager">
|
|
|
|
- <security:authentication-jdbc ref="authenticationRepository"/>
|
|
|
|
|
|
+ <security:authentication-mechanism id="authenticationManager">
|
|
|
|
+ <security:authentication-jdbc ref="authenticationRepository" />
|
|
</security:authentication-mechanism>
|
|
</security:authentication-mechanism>
|
|
|
|
|
|
-
|
|
|
|
- <!--<bean id="authenticationManager"
|
|
|
|
- class="org.acegisecurity.providers.ProviderManager">
|
|
|
|
-
|
|
|
|
- <property name="providers">
|
|
|
|
- <list>
|
|
|
|
- <ref local="authenticationRepository" />
|
|
|
|
- </list>
|
|
|
|
- </property>
|
|
|
|
- </bean>-->
|
|
|
|
-
|
|
|
|
<!-- dao authentication provider -->
|
|
<!-- dao authentication provider -->
|
|
<security:authentication-repository id="authenticationRepository" />
|
|
<security:authentication-repository id="authenticationRepository" />
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
- <bean id="userDetailsService"
|
|
|
|
|
|
+ <bean id="userDetailsService"
|
|
class="org.acegisecurity.userdetails.jdbc.JdbcDaoImpl">
|
|
class="org.acegisecurity.userdetails.jdbc.JdbcDaoImpl">
|
|
<property name="dataSource">
|
|
<property name="dataSource">
|
|
<ref bean="dataSource" />
|
|
<ref bean="dataSource" />
|