You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by micha899 <cs...@gmail.com> on 2012/03/23 18:19:41 UTC
Provide a login for my tapestry application
I'am searching for a way to provide a login which is required to access my
whole application and secure a area on my web application by a role check.
Atm. I have implemented this with the tynamo security framework. I can't
access the "tynamo users mailing list". Am I the only one who cant access
it?
My problem with the tynamo configuration is:
i've implemented my own Authentication realm which returns on
doGetAuthenticationInfo a new SimpleAuthenticationInfo("John", "John",
getName());
just for testing.
I've implemented this in my AppModule:
configuration.add(factory.createChain("/**").add(factory.authc()).build());
configuration.add(factory.createChain("/administration").add(factory.roles(),
"Administration").build());
Now i get to a form login but cant login. I will be redirected to the
login page without error message. I think i have to exclude the login url
from my secure area
but all my ideas semms to be not working...
Can someone please help me?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Provide-a-login-for-my-tapestry-application-tp5590213p5590213.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Provide a login for my tapestry application
Posted by micha899 <cs...@gmail.com>.
Maybe the problem with the tynamo mailing list is because is subscribed with
@gmail and my send from adress in mails @googlemail. I will check that.
I used the dafault login page and added the /security/** to anonymous
access. But ordered it after the FormAuthenticationFilter.
I moved it and it seems to work. Thanks a lot.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Provide-a-login-for-my-tapestry-application-tp5590213p5590372.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Provide a login for my tapestry application
Posted by Kalle Korhonen <ka...@gmail.com>.
On Fri, Mar 23, 2012 at 10:19 AM, micha899 <cs...@gmail.com> wrote:
> Atm. I have implemented this with the tynamo security framework. I can't
> access the "tynamo users mailing list". Am I the only one who cant access
> it?
You have to subscribe via xircles.codehaus.org. What's the error you are seeing?
> My problem with the tynamo configuration is:
> i've implemented my own Authentication realm which returns on
> doGetAuthenticationInfo a new SimpleAuthenticationInfo("John", "John",
> getName());
> just for testing.
> I've implemented this in my AppModule:
> configuration.add(factory.createChain("/**").add(factory.authc()).build());
> configuration.add(factory.createChain("/administration").add(factory.roles(),
> "Administration").build());
> Now i get to a form login but cant login. I will be redirected to the
> login page without error message. I think i have to exclude the login url
> from my secure area
> but all my ideas semms to be not working...
So you are handling login on your own and have your own login page?
You need to let everybody access it *and* the url you are posting the
login to, something like this with the provided login component,
*before* the rest of your rules:
configuration.add(factory.createChain("/login.loginform.tynamologinform").add(factory.anon()).build());
Kalle
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org