1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
    <http auto-config="false" use-expressions="true" disable-url-rewriting="true" entry-point-ref="loginUrlAuthenticationEntryPoint">
        ...
        <custom-filter position="BASIC_AUTH_FILTER" ref="basicAuthenticationFilter">
        ...
    </custom-filter></http>
 
    ...
 
    <beans:bean id="loginUrlAuthenticationEntryPoint" class="com.ezwel.core.security.access.EzLoginUrlAuthenticationEntryPoint">
        <beans:constructor-arg name="loginFormUrl" value="${page.login.form.url}">
    </beans:constructor-arg></beans:bean>
     
    <beans:bean id="basicAuthenticationFilter" class="org.springframework.security.web.authentication.www.BasicAuthenticationFilter">
        <beans:property name="authenticationManager" ref="ezAuthenticationManager">
        <beans:property name="authenticationEntryPoint" ref="loginUrlAuthenticationEntryPoint">
    </beans:property></beans:property></beans:bean>
 
    <beans:bean id="passwordEncoder" class="org.springframework.security.authentication.encoding.Md5PasswordEncoder">
 
    <authentication-manager alias="ezAuthenticationManager">
        <authentication-provider user-service-ref="ezUserDetailsService">
            <!-- <password-encoder hash="md5" base64="false" /> -->
            <password-encoder ref="passwordEncoder">
        </password-encoder></authentication-provider>
    </authentication-manager>
 
    ...
</beans:bean>

+ Recent posts