Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <beans xmlns="http://www.springframework.org/schema/beans" |
||
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
| 4 | xmlns:sec="http://www.springframework.org/schema/security" |
||
| 5 | xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd |
||
| 6 | http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd"> |
||
| 7 | |||
| 8 | <!-- <sec:global-method-security secured-annotations="enabled" pre-post-annotations="enabled"/> --> |
||
| 9 | |||
| 10 | <sec:http entry-point-ref="indraLoginAuthenticationEntryPoint" use-expressions="true"> |
||
| 11 | <!-- <sec:intercept-url pattern="/paginas/**" access="none"/> |
||
| 12 | <sec:intercept-url pattern="/paginas/**" access="isAuthenticated()"/> |
||
| 13 | <sec:intercept-url pattern="br/gov/al/saude/login.jsp" access="none" /> --> |
||
| 14 | |||
| 15 | <!-- |
||
| 16 | <sec:intercept-url pattern="/paginas/index.xhtml" access="IS_AUTHENTICATED_ANONYMOUSLY"/> |
||
| 17 | <sec:intercept-url pattern="/**" access="ROLE_USER"/> |
||
| 18 | --> |
||
| 19 | <sec:custom-filter position="FORM_LOGIN_FILTER" ref="indraAuthenticationProcessingFilter"/> |
||
| 20 | <sec:custom-filter after="FORM_LOGIN_FILTER" ref="indraLoginPageGeneratingFilter" /> |
||
| 21 | </sec:http> |
||
| 22 | |||
| 23 | <bean id="indraLoginAuthenticationEntryPoint" class="br.gov.al.saude.framework.security.entrypoint.IndraLoginAuthenticationEntryPoint"/> |
||
| 24 | <bean id="indraLoginPageGeneratingFilter" class="br.gov.al.saude.framework.security.filter.IndraLoginPageGeneratingFilter"> |
||
| 25 | <property name="geradorTemplate" ref="geradorTemplate"/> |
||
| 26 | </bean> |
||
| 27 | |||
| 28 | <bean id="indraAuthenticationProvider" class="br.gov.al.saude.framework.security.provider.IndraAuthenticationProvider"> |
||
| 29 | <property name="authenticationService" ref="authenticationService"/> |
||
| 30 | <property name="passwordEncoder" ref="passwordEncoder"/> |
||
| 31 | </bean> |
||
| 32 | |||
| 33 | <sec:authentication-manager alias="authManager"> |
||
| 34 | <sec:authentication-provider ref="indraAuthenticationProvider"/> |
||
| 35 | </sec:authentication-manager> |
||
| 36 | |||
| 37 | <bean id="indraAuthenticationProcessingFilter" class="br.gov.al.saude.framework.security.filter.IndraAuthenticationProcessingFilter"> |
||
| 38 | <property name="authenticationManager" ref="authManager"/> |
||
| 39 | </bean> |
||
| 40 | |||
| 41 | <bean id="authenticationService" class="br.gov.al.saude.scg.core.security.ScgAuthenticationService"/> |
||
| 42 | <bean id="passwordEncoder" class="org.springframework.security.authentication.encoding.Md5PasswordEncoder"/> |
||
| 43 | |||
| 44 | <bean id="geradorTemplate" class="br.gov.al.saude.framework.core.template.GeradorTemplateIndra"> |
||
| 45 | <property name="velocityEngine" ref="velocityEngine"/> |
||
| 46 | </bean> |
||
| 47 | |||
| 48 | <bean id="velocityEngine" class="org.apache.velocity.app.VelocityEngine"> |
||
| 49 | <constructor-arg> |
||
| 50 | <props> |
||
| 51 | <prop key="resource.loader">class</prop> |
||
| 52 | <prop key="class.resource.loader.class">org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader</prop> |
||
| 53 | </props> |
||
| 54 | </constructor-arg> |
||
| 55 | </bean> |
||
| 56 | |||
| 57 | </beans> |