Tapestry 5 user authentication
Asked Answered
H

2

6

I was following the very slim tutorial on the Tapestry website for Tapestry 5 and was introduced to very basic database interactions but not how to do user authentication. Where do I go for more comprehensive guidance in tapestry 5? I went to the tapestry wiki (http://wiki.apache.org/tapestry/Tapestry5HowTos) but I wasn't really looking for a bunch of how-to's. Do you know of any good sources?

Habitude answered 16/11, 2010 at 1:6 Comment(0)
M
3

you can 'roll your own' or use one of the 3rd party modules such as tynamo's tapestry-security. even if you do write your own, it's a good idea to see how others have implemented it so have a look at the source.

my first attempt at writing my own security module had me creating a class hierarchy for all my components and pages (inheritance supplied security checks) which does not really follow the tapestry paradigm.

unfortunately it seems fashionable for tapestry and all tapestry modules to have sparse documentation.

Manton answered 16/11, 2010 at 1:16 Comment(3)
for me, the most important thing about learning a framework is documentation and support...tapestry is giving me problems with thisHabitude
get on the mailing list, there's no other way! yes the documentation sucks, but once you get past that first bit of the learning curve it's really quite nice.Manton
The Tapestry documentation has improved quite a bit in the last 2 months and ongoing.Manful
E
4

If you need something robust you are probably going to want to use something like Shiro or Spring's security. Both of those can be integrated with Tapestry. Tapestry-security basically just gives you access to Shiro and you can use the Shiro documentation to figure out anything you need to know. Shiro works very well and you can protect pages as well as methods. It has a number of different options so it can be confusing at first as you try to figure out which parts you need, but it doesn't take too much to get started with.

A couple other ideas to look at:

You might try taking a look at the demo application here: http://tapestry.zones.apache.org:8180/tapestry5-hotel-booking/signin

And the source for it here: https://github.com/ccordenier/tapestry5-hotel-booking/

Also take a look at application here: http://wookicentral.com/

And the source for it here: https://github.com/spreadthesource/wooki

Enfranchise answered 10/1, 2011 at 2:51 Comment(0)
M
3

you can 'roll your own' or use one of the 3rd party modules such as tynamo's tapestry-security. even if you do write your own, it's a good idea to see how others have implemented it so have a look at the source.

my first attempt at writing my own security module had me creating a class hierarchy for all my components and pages (inheritance supplied security checks) which does not really follow the tapestry paradigm.

unfortunately it seems fashionable for tapestry and all tapestry modules to have sparse documentation.

Manton answered 16/11, 2010 at 1:16 Comment(3)
for me, the most important thing about learning a framework is documentation and support...tapestry is giving me problems with thisHabitude
get on the mailing list, there's no other way! yes the documentation sucks, but once you get past that first bit of the learning curve it's really quite nice.Manton
The Tapestry documentation has improved quite a bit in the last 2 months and ongoing.Manful

© 2022 - 2024 — McMap. All rights reserved.