0

Security in ZK 5 CE

asked 2010-07-23 05:23:51 +0800

Arsen gravatar image Arsen
382 5

updated 2010-07-23 05:24:38 +0800

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

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-07-23 05:55:34 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

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

link publish delete flag offensive edit

answered 2010-07-23 15:18:22 +0800

Arsen gravatar image Arsen
382 5

Sterphan, could you, please, provide me link to ZkSample2?

link publish delete flag offensive edit

answered 2010-07-24 02:50:09 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-07-24 02:50:36 +0800

here

link publish delete flag offensive edit

answered 2010-07-24 03:25:28 +0800

Arsen gravatar image Arsen
382 5

Thanks a lot, Stephan.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-07-23 05:23:51 +0800

Seen: 439 times

Last updated: Jul 24 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More