Hi Sander,
Two different pages for logon is possible with the spring security
configuration.
It's hard to see a difference based on the URL in Wicket, so Is there
a way to determine in your application if you need to logon a Client
or a Employee ?
You could redirect to the specific logon page using an aspect.
You could use something like
SecurityContextHolder.getContext().getAuthentication() to check for
authentication on the pages. (spring-security)
Did you integrate spring-security with the wicket-security modules ?
(Swarm, Wasp...)
Kind Regards,
Olger
On 30 jan 2009, at 15:37, Sander Hofstee wrote:.
Hi,
I have an application with two login pages, one for employees and
one for clients. Clients login with a key, employees with a username
and password.
I'm using wicket-security for the authorization stuff. Clients and
employees have different pages, so I thought I could determine the
loginpage
based on the url. But so far I can't get that to work and I don't
know if there are other options.
Does anyone know how I can have two different loginpages in one
application?
Thanks,
Sander.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org