On 4/25/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > what do you mean by "once authenticated" > > what does your loginpage code look like, eg how do you navigate back? My login page is really very simple, it doesn't do much except include a SigninPanel. So as far as I understand from the SigninPanel code, the navigation back is handled by Component#continueToOriginalDestination(). But maybe I'd need to implement something special in my LoginPage, and not rely on the SigninPanel only?
Xavier > > -igor > > > > On 4/25/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I'm trying to implement authentication using wicket and I get some > trouble... > > > > My problem is that when I try to access a page requiring > > authentication, I get redirected to a login page. Fine. But then, once > > authenticated, I get a "Page expired" message, and I don't find how to > > get rid of it instead of going to the page requiring authentication. > > > > Here is some detail on what I've done: > > - I use the not yet released wicket 1.3.0-incubating-beta1 [1] > > > > - I use wicket-auth-roles, with an AuthenticatedWebApplication, > > AuthenticatedWebSession, and RoleAuthorizationStrategy > > > > - my link to the role protected page is created like this: > > new PageLink("project", new IPageLink() { > > public Class getPageIdentity() { > > return ProjectPage.class; > > } > > > > public Page getPage() { > > return new ProjectPage(project); > > } > > > > } > > > > - my page is protected with an annotation: > > @AuthorizeInstantiation(Roles.USER) > > public class ProjectCreationPage extends WebPage { > > > > - my signin page is a very simple page using a panel including the > > SignInPanel from wicket-auth-roles > > > > Any idea? > > > > Xavier > > > > [1] > http://people.apache.org/~dashorst/releases/apache-wicket-1.3.0-incubating-beta1/m2-repo/ > > -- > > Learn Ivy at ApacheCon: http://www.eu.apachecon.com/ > > Manage your dependencies with Ivy! > > http://incubator.apache.org/ivy/ > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- Learn Ivy at ApacheCon: http://www.eu.apachecon.com/ Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user