3 Replies Latest reply on Feb 21, 2012 5:01 PM by 918713

    How to map any authenticated user to particular roles?


      We have a servlet which is using form based authentication. In the auth-constraint section of web.xml, we specified a number of roles which can access the servlet:


      It worked fine in all web servers, but for weblogic, I have to include a weblogic.xml to map particular users into one of these roles:

      <?xml version="1.0" encoding="UTF-8"?>

      <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">

      In this case, anyone logged in as wlUser1 can access our servlet. It works for weblogic. But imagine I add a new user to WL, I will have to add that user to the deployed weblogic.xml, which is not practical at all.

      Is there a way to may any authenticated user into some roles? Is there any better ways to do it?

      Please help.