-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, guys.
I've need to redirect unauthorized user to login page. I've got method Authorization.getCurrent().isAuthorized() to define whether user is authorized or not. At the moment I use Composer which check authorization and invokes.Executions.sendRedirect("/login.zul"), and all other composers extends this one.
Could you, please, provide me the better way? All security solutions I found are based on Spring Security, but I can't use it in CE.
thanks in advance
Hi Arsen,
only for give you an idea (i will not discuss this) : You can look in the ZkSample2 codes. Class: de.forsthaus.webui.util.GFCBaseCtrl.java (BaseController)
There a two methods that can help you to build your own security.
1. onEvent
2. isAllowed()
best
Stephan
Asked: 2010-07-23 05:23:51 +0800
Seen: 439 times
Last updated: Jul 24 '10