User managed security in Java EE -


i want protect jsf pages in java ee 6 app.

i want store users , roles in db , have privileged users administer them via web tool. privileged users add users roles , set pages require roles access.

it seems me container managed security won't let me that. jaas way forward?

any suggestions , links examples appreciated.

the short answer yes. jaas allow manage security against database use loginmodule(many container implementations jboss offer these pre-canned out of box) , can check out article(http://weblogs.java.net/blog/2006/03/07/repost-using-jaas-jsf) or book(http://www.java.net/external?url=http://purl.oclc.org/net/jsfbook/) more specifics how authenticate users , determine authorization parameters jaas , jsf.

for second requirement, can't see reason why can create separate tool has access tables modify credential information. though seems problem has been solved using ldap provider 1 of number of free , open source web interfaces.

another nifty feature because of clear separation of concerns can later migrate ldap or third party services little effort.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -