Spring security integration - setting properties in SpringAwareWebFilter #6438

Closed
mpusarla opened this Issue Oct 12, 2015 · 2 comments

Projects

None yet

2 participants

@mpusarla

I am trying to integrate Hazelcast in spring security. Configured SpringAwareWebFilter instead of WebFilter. I used to have the following configuration in applicationContext.xml

<bean id="hazelcastWebFilter" class="com.hazelcast.web.WebFilter">
        <constructor-arg>
            <props>
                <prop key="map-name">sessions</prop>
                <prop key="sticky-session">true</prop>
                <prop key="test1">${app.cookie}</prop>
                <prop key="test2">${app.secure}</prop>
            </props>
        </constructor-arg>
</bean>

but now, with springAwareWebFilter, the only way I can specify the properties is using the init-param.

I would like to keep the properties separate from the web.xml? Can you let me know how can i set the properties outside web.xml?

@serkan-ozal serkan-ozal self-assigned this Oct 13, 2015
@serkan-ozal serkan-ozal added this to the 3.6 milestone Oct 13, 2015
@serkan-ozal
Contributor

@mpusarla you are right.
SpringAwareWebFilter should have a constructor which takes properties as argument like this:

public class SpringAwareWebFilter extends WebFilter {

    ...

    public SpringAwareWebFilter(Properties properties) {
        super(properties);
    }

    ...
}

I will add this to SpringAwareWebFilter then you can use SpringAwareWebFilter as WebFilter by constructor argument in applicationContext.xml.

Thanks for reporting this one.

@mpusarla

Thanks!

@serkan-ozal serkan-ozal closed this in #6494 Oct 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment