Re: integrating T5 a login form with Spring Security?

2009-03-28 Thread Otho
My old solution which worked fine with the little glitch I described in my last post. The problem might be in the session.invalidate(); @Inject private Request request; @Inject private Response response; @Property private String username; @Property private

Re: integrating T5 a login form with Spring Security?

2009-03-28 Thread Otho
Then I would guess that the programmatic authentication is your best option. It isn't really that hard and you can build as many safeguards as you want. But yes, it is annoying, that it isn't already built into spring security as a possibility. It is really more than a bit geared towards servlets

Re: integrating T5 a login form with Spring Security?

2009-03-27 Thread Borut Bolčina
Hi, how did you do it? I am getting ComponentEventException when using void onSuccess() { Request request = requestGlobals.getRequest(); String url = request.getContextPath() + checkUrl + ?j_username= + username + j_password= + password; logger.info(onSuccess()

Re: integrating T5 a login form with Spring Security?

2009-03-27 Thread Otho
I used the form login but had tha problem that the redirect done by spring security didn't make all components on the page refresh, so that a logged in user still had the login link in the page header instead of the logout link until he refreshed the page or chose another link. I found it easier

Re: integrating T5 a login form with Spring Security?

2009-03-27 Thread Peter Lundberg
Jean Luc... Did you have a look at tapestry-spring-security? The repositry is at http://www.localhost.nu/java/mvn/nu/localhost/tapestry/tapestry-spring-secur ity/ but the project site seams to be down. It is rough on the edges, but works well and is not to hard to understand the code. It would

Re: integrating T5 a login form with Spring Security?

2009-03-27 Thread Borut Bolčina
I am using tapestry-spring-security. It works ok, but I am trying to spice up the login form with captcha if user has failed to login 5 times (like google account). The form uses action=${loginCheckUrl} method=POST and is a regular html form (not t:form). But I need it to be t:form to put some

Re: integrating T5 a login form with Spring Security?

2008-12-15 Thread Michael Gerzabek
You have to provide the login-processing-url to your template file. Look into nu.localhost.tapestry5.springsecuritytest.pages.LoginPage and the respective LoginPage.tml in the webapp of the sample. It's artefact is dependency groupIdnu.localhost.tapestry5.springsecurity/groupId

Re: integrating T5 a login form with Spring Security?

2008-12-15 Thread Martijn Brinkers
I'm using the action attribute form id=login method=post action=${loginCheckUrl} Martijn On Sun, 2008-12-14 at 19:30 -0500, Jean Luc wrote: Hello, I've been trying to integrate T5 and Spring Security (2.0.4, not the older Acegi) but haven't succeeded in making the two work together.

Re: integrating T5 a login form with Spring Security?

2008-12-15 Thread SergeEby
, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://www.nabble.com/integrating-T5-a-login-form-with-Spring-Security--tp21006586p21012513.html Sent from the Tapestry - User mailing list archive

integrating T5 a login form with Spring Security?

2008-12-14 Thread Jean Luc
Hello, I've been trying to integrate T5 and Spring Security (2.0.4, not the older Acegi) but haven't succeeded in making the two work together. The standard way to specify a form login with Spring 2.5 is like below. See the form-login element which specified the login page (Login) and what URL

Re: integrating T5 a login form with Spring Security?

2008-12-14 Thread Hugo Palma
In your page class inject the check url like this: @Inject @Value(${spring-security.check.url}) private String checkUrl; then on your onSuccessMethod: response.sendRedirect(request.getContextPath() + checkUrl + ?j_username= + username + j_password= + password); where username and password

Re: integrating T5 a login form with Spring Security?

2008-12-14 Thread Jean Luc
Thanks Hugo, I've [tried to] inject the request and the response as mentioned (for the request) at: http://wiki.apache.org/tapestry/Tapestry5ObtainingHttpServletRequest @Inject private HttpServletRequest request; @Inject private HttpServletResponse response; It works for the

Re: integrating T5 a login form with Spring Security?

2008-12-14 Thread Jean Luc
Update: I can get the response with: @Inject private RequestGlobals requestGlobals; and using requestGlobals.getHTTPServletResponse(); I'll need to change the redirect into a forward (to save a trip and to prevent the username/pwd appear in the URL) but that's standard servlet stuff.

Re: integrating T5 a login form with Spring Security?

2008-12-14 Thread Borut Bolčina
Hi Jean Luc, there is a working example at http://www.localhost.nu/svn/public/tapestry-spring-security-sample/ if you want to use http://www.localhost.nu/java/tapestry-spring-security/. Cheers, Borut 2008/12/15 Jean Luc jeanluc2...@gmail.com Hello, I've been trying to integrate T5 and