Hi,

ok, I can create constructor:
ArtisolHostFilter(PageService pageService, String... blockedIPs) 
but in AppModule it wants to have just String if i use call like:

public static void
contributeSecurityConfiguration(Configuration<SecurityFilterChain>
configuration, SecurityFilterChainFactory factory, WebSecurityManager
securityManager)
        {

                
configuration.add(factory.createChain("/rest/index/**").add(factory.anon()).build());
>>>>>>>> configuration.add(factory.createChain("/rest/**").add(new
>>>>>>>> ArtisolHostFilter("1.1.1.1")).build());
        }

I do not know how to insert PageService here in AppModule... If i would know
this I thing there would not be any problem.
Then I could call something like (I think):

public static void
contributeSecurityConfiguration(Configuration<SecurityFilterChain>
configuration, SecurityFilterChainFactory factory, WebSecurityManager
securityManager)
        {

        
configuration.add(factory.createChain("/rest/index/**").add(factory.anon()).build());
                configuration.add(factory.createChain("/rest/**").add(new
ArtisolHostFilter(PAGE_SERVICE, "1.1.1.1")).build());
        }

or am I missing something?

Thank you alot for helping me, I am new to Tapestry and with this security I
am realy lost.

Andrej

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ANNOUNCEMENT-Tapestry-security-0-4-1-released-tp5432299p5519002.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to