Affects Version/s: 1.2
Fix Version/s: None
Operating System: Windows XP
hello hi JSF and JAAS experts,
I have web application implementing with jsf facelets and tomcat .Now i
want to provide security in my application that is some web pages allow for
admin and some web pages for user and..... that means based on role of user i
want to give the access for web pages. so for that i am using JAAS for
authentication and authorization . I am successfully implemented JAAS
authentication for who is logged in. And i am getting subject and putting that
subject in context session using following snippet.And also i am able to getting
subject and its principals in that subject.
My doubt is based on that subject , how to write policy file and how to
call doAsPrivileged() mehod on that Subject in order to navigate web pages.how
to provide web pages permission for particular role in policy file..
For example i have three pages login.xhtml,user.xhtml,admin.xhtml.
1> if the logged in person is admin, then we want to display admin.xhtml
2> if the loggend is person is user , then we want to display user.xhtml
untill now i did and found who is logged in and what are his type( admin or
user) .now i want configure the web.xml and faces-config.xml based on policy file
YOu can find my Post at SUN FORUM following URL