dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #06796
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1891: Experimentally added HTTP Basic auth as an authentication mechanism.
------------------------------------------------------------
revno: 1891
committer: Jo Størset <storset@xxxxxxxxx>
branch nick: trunk
timestamp: Sat 2010-07-31 11:42:40 +0200
message:
Experimentally added HTTP Basic auth as an authentication mechanism.
It should only kick in if the request header contains a basic
authentication header, and shouldn't be noticable for standard use.
modified:
dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/beans.xml
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/beans.xml'
--- dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/beans.xml 2010-07-18 15:17:23 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/beans.xml 2010-07-31 09:42:40 +0000
@@ -25,7 +25,7 @@
<sec:filter-chain pattern="/dhis-web-commons/security/**" filters="none"/>
<sec:filter-chain pattern="/dhis-web-commons/util/**" filters="none"/>
<sec:filter-chain pattern="/dhis-web-commons/css/**" filters="none"/>
- <sec:filter-chain pattern="/**" filters="httpSessionContextIntegrationFilter,authenticationProcessingFilter,logoutFilter,automaticAccessFilter,requiredLoginFilter"/>
+ <sec:filter-chain pattern="/**" filters="httpSessionContextIntegrationFilter,authenticationProcessingFilter,logoutFilter,automaticAccessFilter,basicAuthenticationFilter,requiredLoginFilter"/>
</sec:filter-chain-map>
</bean>
@@ -321,6 +321,15 @@
</property>
</bean>
+ <bean id="basicAuthenticationFilter" class="org.springframework.security.web.authentication.www.BasicAuthenticationFilter">
+ <property name="authenticationManager" ref="authenticationManager" />
+ <property name="authenticationEntryPoint" ref="authenticationEntryPoint" />
+ </bean>
+
+ <bean id="authenticationEntryPoint" class="org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint">
+ <property name="realmName" value="DHIS2"/>
+ </bean>
+
<bean id="requiredLoginFilter" class="org.hisp.dhis.security.filter.RequiredLoginFilter">
<property name="currentUserService" ref="org.hisp.dhis.user.CurrentUserService" />
<property name="loginPageUrl" value="/dhis-web-commons/security/login.jsp" />