-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi I am new for this zk,
I want to implement the spring security in my application, I read the document provided to implement the Spring security but
I am not be able to replicate it into my application.
I want to authenticate my application using DB call, how may i configure the "authentication-provider" to do the same.
There is role define the flow of the apps(like admin/user), how may i configure the spring security to set the flow and sent the request to the specified view-state as per the role.
Thanks
christabhi
A help could be the docu and the source codes of the Zksample2 demo application
Hi Terry,
I am implementing this Spring security 1st time so I have few queries.
1) I have to manage the flow like when User login in it will go to different page and if Admin login it will go to different page, it all depends on Role
earlier for this i have created a session and put user object in it, which i get from the database. And used this session in the entire page.
2) How do I implement the same, using Spring security on Role base.
And I want to know about my approach, which one is good, 1st or 2nd one.
Thanks if you comment on my approach as well, it really helps me to be a good developer.
Thanks
Abhishek
Hi abhishekv5,
Welcome to ZK Forum.
have you read this article if you are going to use spring security then i would suggest going with option 2 as it will save you from lot of boiler plate code dealing with managing your custom user object in session. Hope that helps.
Hi Ashish,
This article is really very effective, but I want to use authentication in webflow, I want to redirect my page in webflow according to Role.
Thanks if you provide me such kind of example.
Thanks
Abhishek
Asked: 2010-10-20 07:03:13 +0800
Seen: 302 times
Last updated: Oct 21 '10