Hi, I've only been using Wicket a very short time, but why don;t you just create a simple login form page. Then look at the source and you'll see something like: <form action="?wicket:bookmarkablePage=:com.youpackage.LoginPage&wicket:interface=:0:signInPanel:signInForm::IFormSubmitListener::" wicket:id="signInForm" id="signInForm" method="post">
Then you need to just to POST the username and password parameters to the above URL , and it'll log you in. I not sure how you set to us GET in wicket which would be more easy for you. But I''m sure someone get tell you how to set that up for a form. cheers Wayne On Mon, Sep 8, 2008 at 9:59 PM, dlipski <[EMAIL PROTECTED]> wrote: > > Hi > > Im developing with Wicket for short time so forgive me if I misanderstood > some Wicket concepts. > Recently I was asked for develop SSO-like feature for Wicket powered web > application. > Application uses wicket-auth-roles + Acegi for securing wicket pages. > What I have to do is to let authenticate users to this web app only by > typing URL in their web browsers (or clicking some prepared link). > This URL will contain username and password but user will not be forced to > fill in any form or press any button - just typing url or cliciking some > prepared link. > Actual way of uthentication (via Wicket page) must remain, so there will be > two ways to login to application: either by filling in form or typing url > in > web browser. > Because this application is using wicket-auth-roles what I have to do is to > retrive from request user login and password and call signIn(username, > password) on Session object. > This is the moment where problem begins (for me). > I've tried to write simple servlet to do this but when I've accessed Wicket > session by: Session.get() runtime exception was thrown because Wicket > session cant be created outside request cycle... > ...so I decided to do this inside request cycle, but actually I dont know > any simple solution to execute some code (after sending bookmarkable > request) and redirect to some WicketPage. > What I need is something like BookmarkablePage but dont displaying any > page, > only redirecting to other page (after executing autentication,or some other > code), something which might be called BookmarkableAction ;). > Probably it is possible to write custom request target and extend request > target processor (to create such target) but it looks too complicated for > me > to perform some simple task. > In action oriented frameworks (Struts/SpringMVC/...) its trivial, I know > that Wicket is page oriented framework but Im wondering if there is any > support for such 'actions'. > > Maybe there is some other way to achive such SSO-like feature ? > > Regards > Daniel > -- > View this message in context: > http://www.nabble.com/newbie-problem-witch-wicket...-tp19379967p19379967.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >