Thursday, September 17, 2015

Weblogic Application Authorization

1. Entries in weblogic.xml

   <wls:security-role-assignment>
        <wls:role-name>AUTHENTICATED_USER</wls:role-name>
    <wls:principal-name>ApplicationUser</wls:principal-name>
    </wls:security-role-assignment>
 
     <wls:security-role-assignment>
        <wls:role-name>Deployers</wls:role-name>
    <wls:principal-name>Deployers</wls:principal-name>
    </wls:security-role-assignment>
 
     <wls:security-role-assignment>
        <wls:role-name>WORKFLOW_AUTHENTICATED_USER</wls:role-name>
    <wls:principal-name>WORKFLOW_AUTHENTICATED_USER</wls:principal-name>
    </wls:security-role-assignment>
 

2. Entries in Web.xml
   
                <security-role>
 <role-name>AUTHENTICATED_USER</role-name>
</security-role>
<security-role>
 <role-name>Deployers</role-name>
</security-role>
<security-role>
 <role-name>WORKFLOW_AUTHENTICATED_USER</role-name>
</security-role>


3. <%if(request.isUserInRole("ROLE_WORKFLOW_AUTHENTICATED_USER")){%> WORKFLOW_AUTHENTICATED_USER <%} %>

No comments:

AWS EC2 - SSH locked with UFW

Need to update the instance's user data: 1. Stop the instance 2. Right click (windows) or ctrl + click (Mac) on the instance to open a c...