Re: Call Tynamo's SimpleAccountRealm's methods

2013-01-28 Thread Thiago H de Paula Figueiredo
On Mon, 28 Jan 2013 09:58:07 -0200, Segura wrote: @Contribute(WebSecurityManager.class) public static void addRealms(Configuration configuration) { AccountRealmImpl realm = new AccountRealmImpl(); configuration.add(realm); } It doesn't make any sense to to instanti

Re: Call Tynamo's SimpleAccountRealm's methods

2013-01-28 Thread Segura
Kalle, really useful tip. But... I wrote simple interface public interface AccountRealm { void addAccount(String username, String password); boolean accountExists(String username); } and changed my realm description to public class AccountRealmImpl extends AuthorizingRealm im

Re: Call Tynamo's SimpleAccountRealm's methods

2013-01-27 Thread Lenny Primak
Also, remember that tynamo-security is just a front end to Apache Shiro. You need to understand how it works before you can fully understand the concepts here. They have great documentation and sample code. On Jan 27, 2013, at 11:49 AM, Segura wrote: > Yes, i know it. And i read all of http:

Re: Call Tynamo's SimpleAccountRealm's methods

2013-01-27 Thread Segura
Yes, i know it. And i read all of http://tynamo.org/tapestry-security+guide , but have not found a Realm's method call. I thought that it is like working with the hibernate session: @Inject private MyRealm realm; ... void foo() { realm.addAccount(na

Call Tynamo's SimpleAccountRealm's methods

2013-01-27 Thread Segura
Hello. Trying to configurate Tapestry-Security. Added into my AppModule @Contribute(WebSecurityManager.class) public static void addRealms(Configuration configuration) { SimpleAccountRealm realm = new SimpleAccountRealm(); configuration.add(realm); } But i cant understand how to call Simpl