0

ZK + Spring + Custom Authenticator

asked 2009-03-13 12:47:04 +0100

danielgoodwin gravatar image danielgoodwin
76 2

ZK 3.6.0
(bit of a newbie at this, so patience!)

I am trying to introduce custom authentication to the zkspringsec2 example
(http://docs.zkoss.org/wiki/Ajax_Based_Login_with_ZK_and_Spring_Security_System)
as I need to validate user login using a web service (.Net !).

I have plugged in the custom authenication part into spring and that appears ok but when I 'uncomment' the following segment in the security descriptor
<zksp:zk-event login-template-close-delay="5">
<zksp:intercept-event event="onClick" path="//**/btn_*" access="ROLE_TELLER"/>
<zksp:intercept-event path="/**" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
</zksp:zk-event>

I get - No bean named '_formLoginFilter' is defined exception. I believe I do need this part in place as while the user validation suceeds, I just get internal errors on login

Now looking at schema I though I could get around this by defining a form-login within the zk:event but I then
get an exception that indicates that only the intercept-events are allowed

<zksp:form-login login-page="/login.zul" authentication-failure-url="/errorpage.zul"
login-ok-url="/secure/index.jsp"/>

Any help or direction appreciated

BTW the custom login is based on this example
http://tejakantamneni.blogspot.com/2008/08/spring-security-using-custom.html

Daniel

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-09-22 07:39:26 +0100

pmcZK gravatar image pmcZK
12

Hello Daniel,
Did you resolve this problem ? I'v got the same ...

Thanks
Bruno

link publish delete flag offensive edit

answered 2010-09-30 22:04:33 +0100

PeterKuo gravatar image PeterKuo
481 2

@pmcZK
maybe danielgoodwin didn't notice your problem,
I mailed to notify him.
Wish he can share his experience with us.

BTW, which zk version are you using?
Can you explain more about your problem?

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: 2009-03-13 12:47:04 +0100

Seen: 967 times

Last updated: Oct 11 '10

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