On 10/26/05, Maurice Marrink <[EMAIL PROTECTED]> wrote: > >> What is that allowCreation() ? > >> when whould that be called? > > >In the constructor of component. > Too late, it needs to be checked on class level before calling any > constructors. PageFactory would be a good start. >
PageFactory would be good if that would allways be used /and/ it would apply to pages only. Both assumptions do not have to be true. In the contructor it's not too late; we'll call it first thing. Everybody happy. > >What I think Wicket does great so far, as that it doesn't make too many > >assumptions on how people develop their applications. > But we make life so much easier if we provide a default that will be used by > 90% of the people. And if you cant or won't use the default, it's just a > method overwrite away, or setting a flag, or whatever. Something simple. > My whole point is that I'm not thinking about a default, good and easy working implementation yet, but the infrastructure first. You build on top of the infrastructure. When that works, a 90% convering implementation would be great. Btw, I think default there should be no authorization at all. > >Imo, a model that has things like R/W/etc is too specific yet. > If you don't allow for fine-grained support it will be harder to add it by > those that do need it. If on the other hand you do allow this fine-grained > support it can easily be abstracted away in an additional layer on top of > it. Depends on what you do with it. Not if end the end it boils down to boolean choices, which in our case it does. > Making a universal login method would be difficult whether it is combined > with authorization or not, since we want to support more then just simple > username and password authentication. One way of doing it would be to use > callback handlers just like jaas does. > Another option is not defining a login method at all but let that be an > implementation detail. Exactly. There is no need to do it in Wicket at all! There's JAAS, J2EE security, Acegi, etc that handles this well. > What we do need is a check if the security system has an authenticated user. > The way I see it this would be mainly used by pages to check if we need to > redirect someone to a login page, but other usage is also possible. > For wicket it is not relevant if the right to read or write to a page comes > from an authenticated user or is granted to everybody. No. Absolutely not. It's an implementation detail. It's an implicit authorisation thing. One case authenticated might mean that there is a Principal with sufficient rights. Another case might be the time of day. Etc. It's not a boolean. The authorization mechanism might decide/ find out whether authorization was done. And as for redirecting stuff... that's really out-of-scope imo. Let's put that in extensions or even a wicket-stuff project. > > >The point is too that we want to have something that is really good > >abstracted out instead of something that just works. We only have to > >do this once. > That's what we are trying to do here too. (you should have seen my first > attempt :)) And although we follow the KISS principle we do need to make a > solid foundation to build on. Good :) Eelco ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
