ZK & Spring Security

asked 2014-08-11 07:16:06 +0800

gsanmartin gravatar image gsanmartin
25 5

updated 2014-08-11 07:20:17 +0800

I am integrating ZK with Spring Security, so far I've configured the latter so all URLs are secured except for the login page. Which of course works fine when page switching takes place by navigating to different URLs.

What I don't get, though, is that when I change some content dynamically (i.e. by changing the src attribute of an include element), and then within the controller of that new content I call SecurityContextHolder.getContext().getAuthentication(), I obtain no sort of credentials.

I know I am losing the "secured URL" bit by changing content dynamically (since I am not using URLs), but shouldn't the context be available to those controllers?

delete flag offensive retag edit
Be the first one to answer this question!
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

1 follower



Asked: 2014-08-11 07:16:06 +0800

Seen: 10 times

Last updated: Aug 11 '14

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