Re: login with stored procedure

2010-10-21 Thread Andrey Gladilin
Stupid me. I've been checking the `password.toString()`, but should have to do `new String(password)`. My login form is working fine. Thank you all for help! On Wed, Oct 20, 2010 at 11:12 PM, Andrey Gladilin wrote: > Seems that this advise does not work for me. > Look, I implement a

Re: login with stored procedure

2010-10-20 Thread Andrey Gladilin
); stmt.setString(2, password.toString()); stmt.execute(); ... I don't use any matcher here. As far as I can understand, matchers are used in realms, am I right? So, how can I get a plain text password here? Or how can I decode it? On Wed, Oct 20, 2010

Re: login with stored procedure

2010-10-20 Thread Andrey Gladilin
er(new SimpleCredentialsMatcher()); > > But wouldn't you rather want to compare the hashes? > > Kalle > > PS. attachments won't go through > > > On Tue, Oct 19, 2010 at 11:31 PM, Andrey Gladilin > wrote: >> Thank you all for answeres. >> I have chose

Re: login with stored procedure

2010-10-19 Thread Andrey Gladilin
Thank you all for answeres. I have chosen Tynamo-security and implemented a realm. You can find it attached. But when I try to login, I receive encrypted password. But I want it as plain text. There are some matchers but I can not get the way how to use it. link: http://shiro.apache.org/configura

login with stored procedure

2010-10-16 Thread Andrey Gladilin
Hi guys, Is there a way to make authentication in Tapestry using store procedure. I have several stored procedures in Postgres, like login(session_id, username, password, locale) logout(session_id) get_roles(session_id) I was trying to use Spring Security, but did not find a way to use stor

Re: can not setup tapestry-spring-security

2010-10-13 Thread Andrey Gladilin
T w/ Spring 3. > > Regards, > > Alex K > > > > On Wed, Oct 13, 2010 at 1:43 PM, Andrey Gladilin > wrote: > >> Thank you Alex for your answer. >> Attached is zip archive of project. >> >> On Wed, Oct 13, 2010 at 3:48 PM, Alex Kotchnev wrote: >

can not setup tapestry-spring-security

2010-10-13 Thread Andrey Gladilin
Hello, I can not succeed in setting up the tapestry-spring-security. I created a default project from maven archetype, line this: http://tapestry.apache.org/tapestry5.1/quickstart/. I followed instructions from http://www.localhost.nu/java/tapestry-spring-security/conf.html and used some code from