Merge branch 'master' of https://git.bukova.info/repos/git/isspst
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
<value>/WEB-INF/jdbc.properties</value>
|
||||
<value>/WEB-INF/ldap.properties</value>
|
||||
<value>/WEB-INF/mail.properties</value>
|
||||
<value>/WEB-INF/gmail.properties</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
@@ -36,7 +37,10 @@
|
||||
class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"
|
||||
p:driverClassName="${jdbc.driverClassName}"
|
||||
p:url="${jdbc.databaseurl}" p:username="${jdbc.username}"
|
||||
p:password="${jdbc.password}"></bean>
|
||||
p:password="${jdbc.password}">
|
||||
<property name="validationQuery" value="SELECT 1"/>
|
||||
<property name="testOnBorrow" value="true"/>
|
||||
</bean>
|
||||
|
||||
<bean id="sessionFactory"
|
||||
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
|
||||
@@ -71,8 +75,32 @@
|
||||
<property name="permissionEvaluator" ref="permissionEvaluator" />
|
||||
</bean>
|
||||
|
||||
<bean id="permissionEvaluator" class="info.bukova.isspst.security.IsspstPermissionEvaluator">
|
||||
<property name="workgroupService" ref="workgroupServiceNoTx"/>
|
||||
<bean id="permissionEvaluator" class="info.bukova.isspst.security.IsPermissionEvaluator">
|
||||
<!-- <property name="workgroupService" ref="workgroupServiceNoTx"/> -->
|
||||
</bean>
|
||||
|
||||
<bean id="serviceEval" class="info.bukova.isspst.security.ServiceEvaluator"/>
|
||||
|
||||
<bean id="wgServiceEval" class="info.bukova.isspst.security.WorkgroupAwareServiceEvaluator">
|
||||
<constructor-arg ref="workgroupServiceNoTx"/>
|
||||
</bean>
|
||||
|
||||
<bean id="requirementEval" class="info.bukova.isspst.security.RequirementFilterEvaluator">
|
||||
<constructor-arg ref="workgroupServiceNoTx"/>
|
||||
</bean>
|
||||
|
||||
<bean id="evalHolder" class="info.bukova.isspst.security.EvaluatorsHolder">
|
||||
<property name="globalEvaluators">
|
||||
<map>
|
||||
<entry key="#{T(info.bukova.isspst.services.Service)}" value-ref="serviceEval"/>
|
||||
</map>
|
||||
</property>
|
||||
<property name="specialEvaluators">
|
||||
<map>
|
||||
<entry key="#{T(info.bukova.isspst.services.Service)}" value-ref="wgServiceEval"/>
|
||||
<entry key="#{T(info.bukova.isspst.data.RequirementBase)}" value-ref="requirementEval"/>
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<security:http auto-config="true" use-expressions="true">
|
||||
@@ -85,12 +113,24 @@
|
||||
authentication-failure-handler-ref="loginFail"
|
||||
authentication-success-handler-ref="loginSuccess"/>
|
||||
<security:http-basic/>
|
||||
|
||||
<security:openid-login authentication-failure-handler-ref="loginFail"
|
||||
authentication-success-handler-ref="loginSuccess"
|
||||
user-service-ref="gmailUserService">
|
||||
<security:attribute-exchange identifier-match="https://www.google.com/.*">
|
||||
<security:openid-attribute name="email" type="http://schema.openid.net/contact/email" required="true" />
|
||||
<security:openid-attribute name="firstName" type="http://axschema.org/namePerson/first" required="true" />
|
||||
<security:openid-attribute name="lastName" type="http://axschema.org/namePerson/last" required="true" />
|
||||
</security:attribute-exchange>
|
||||
</security:openid-login>
|
||||
|
||||
<security:logout invalidate-session="true"/>
|
||||
</security:http>
|
||||
|
||||
<import resource="database-auth.xml"/>
|
||||
<import resource="gmail-auth.xml"/>
|
||||
<!-- <import resource="ldap-auth.xml"/> -->
|
||||
|
||||
|
||||
<import resource="mail-services.xml"/>
|
||||
|
||||
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
|
||||
|
||||
Reference in New Issue
Block a user