Re: Authentification in Tapestry

2009-06-04 Thread Onno Scheffers
> Why don't you use annotations for that? Something like @PublicPage? If the > page hasn't it, it is protected. > > Unless there are pages that need some internal logic to decide if they're > public or protected (hence an interface with a isPublic() method), > annotations are a better solution for

Re: Authentification in Tapestry

2009-06-04 Thread Peter Stavrinides
Beirut, Bucharest, Istanbul Subject: Re: Authentification in Tapestry On Thu, Jun 4, 2009 at 3:41 AM, Thiago H. de Paula Figueiredo wrote: > Em Wed, 03 Jun 2009 22:07:28 -0300, Onno Scheffers > escreveu: > >> I'm also using a custom dispatcher. >> The thing I don'

Re: Authentification in Tapestry

2009-06-04 Thread Massimo Lusetti
On Thu, Jun 4, 2009 at 3:41 AM, Thiago H. de Paula Figueiredo wrote: > Em Wed, 03 Jun 2009 22:07:28 -0300, Onno Scheffers > escreveu: > >> I'm also using a custom dispatcher. >> The thing I don't like about most of the current examples/solutions I've >> seen so far is that access is allowed by d

Re: Authentification in Tapestry

2009-06-04 Thread Massimo Lusetti
On Wed, Jun 3, 2009 at 9:13 PM, Thibaut Gadiolet wrote: > OK, I stop using a full T5 solution to handle authentication/authorization. > I am using ACEGI with a basic configuration, you can easily integrate it to > your T5 projects, It's not as heavy as I thought, and it turned  out to be > very e

RE: Authentification in Tapestry

2009-06-04 Thread Newham, Cameron
That's the way I've written the access control on our system. -Original Message- From: Christian Senk [mailto:senk.christ...@googlemail.com] Sent: 03 June 2009 20:24 To: Tapestry users Subject: Re: Authentification in Tapestry We are using a custom dispatc

Re: Authentification in Tapestry

2009-06-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Jun 2009 22:07:28 -0300, Onno Scheffers escreveu: I'm also using a custom dispatcher. The thing I don't like about most of the current examples/solutions I've seen so far is that access is allowed by default if the developer forgets to add a specific annotation. I'd like the pag

Re: Authentification in Tapestry

2009-06-03 Thread Onno Scheffers
> > All you have to do is to annotate the desired page with > "@Secured(Role.ADMIN)" I'm also using a custom dispatcher. The thing I don't like about most of the current examples/solutions I've seen so far is that access is allowed by default if the developer forgets to add a specific annotation

Re: Authentification in Tapestry

2009-06-03 Thread Thibaut Gadiolet
Thank you guys, I like the idea of implementing my own dispatcher. BTW, Thiago, ACEGI is what I am using, as I said at the top of this conversation. I think it is still the best way to solve Authentication/authorization issues with Tapestry... but it's always interesting to see if a full T5 solut

Re: Authentification in Tapestry

2009-06-03 Thread Joost Schouten (mailing lists)
We have build our own using a custom RequestFilter which is not dissimilar to Christians Dispatcher approach. Cheers, Joost PS: I love the simple way to also check for ajax requests to secure pages and forward to the login if needed: PrintWriter writer = response.getPrintWriter("application/json

Re: Authentification in Tapestry

2009-06-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Jun 2009 16:13:18 -0300, Thibaut Gadiolet escreveu: OK, I stop using a full T5 solution to handle authentication/authorization. I am using ACEGI with a basic configuration, you can easily integrate it to your T5 projects, It's not as heavy as I thought, and it turned out to b

Re: Authentification in Tapestry

2009-06-03 Thread Christian Senk
We are using a custom dispatcher called "AccessControlDispatcher". It is like the AccessDispatcher described in the howto-wiki, but in addition it checks for certain roles. This works through a SessionState object that implements an interface used by the dispatcher to determine if the SessionStat

Re: Authentification in Tapestry

2009-06-03 Thread Thibaut Gadiolet
OK, I stop using a full T5 solution to handle authentication/authorization. I am using ACEGI with a basic configuration, you can easily integrate it to your T5 projects, It's not as heavy as I thought, and it turned out to be very efficient. But if someone gets a better solution full T5, I'm open

Re: Authentification in Tapestry

2009-05-22 Thread Sergey Didenko
Thanks for tips, Thiago! > This has been discussed in this list before. Check the archives > (http://www.nabble.com/Tapestry---User-f340.html) for some ideas. > Usually they are centered around a RequestFilter or a > ComponentClassTransformer. > ---

Re: Authentification in Tapestry

2009-05-22 Thread Massimo Lusetti
On Thu, May 21, 2009 at 6:01 PM, Thiago H. de Paula Figueiredo wrote: >> I am creating a web application using Tapestry for the GSoC. >> I was wondering what is best way to fit security requirements of a mere >> application (login/password/roles). > > This has been discussed in this list before.

Re: Authentification in Tapestry

2009-05-21 Thread Thiago H. de Paula Figueiredo
On Thu, May 21, 2009 at 12:50 PM, Thibaut Gadiolet wrote: > Hi, Hi! > I am creating a web application using Tapestry for the GSoC. > I was wondering what is best way to fit security requirements of a mere > application (login/password/roles). This has been discussed in this list before. Check t

Authentification in Tapestry

2009-05-21 Thread Thibaut Gadiolet
Hi, I am creating a web application using Tapestry for the GSoC. I was wondering what is best way to fit security requirements of a mere application (login/password/roles). How to keep and pass the user data from page to page ? Should I use Tapestry mechanism to check access rights ? Like OnActi