I'm integrating a wicket app w/ an external login framework. When a user who isn't logged in tries to access a restricted page, wicket redirects them to the sign-in page, which is a RedirectPage for the external login page. That page sets a cookie when people log in, and can redirect users back to any URL I specify. My problem is grabbing that URL -- I'd like to do it in the constructor of my WebRequestCycle, but I can't tell which page requests are real user requests, and which ones are wicket-created redirects to the login page. They both create a new WebRequestCycle, in both cases isRedirect() returns false, and in both cases request.getPage() returns null.

I used to cache the URL in the session.getRoles method (it doesn't get called for the redirect), but it seems like there's got to be a better place (the request cycle for instance).

Any ideas?

Any ideas are appreciated,
Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to