Administration guide > Secure the deployment environment > Tutorial: Integrate WebSphere eXtreme Scale security with WAS > Module 4: Use Java Authentication and Authorization Service (JAAS) authorization in WAS
Secure the deployment environment > Tutorial: Integrate WebSphere eXtreme Scale security with WAS > Module 4: Use Java Authentication and Authorization Service (JAAS) authorization in WAS >
< Previous | Next >
Lesson 4.1: Enable WebSphere eXtreme Scale authorization
To enable authorization in WebSphere eXtreme Scale, enable security on a specific ObjectGrid.
To enable authorization on the ObjectGrid, you must set the securityEnabled attribute to true for that particular ObjectGrid in the XML file. For this tutorial, you can either use the XSDeployment_sec.ear file in the samples_home/WASSecurity directory, which has already has security set in the objectGrid.xml file, or you can edit the existing objectGrid.xml file to enable security. This lesson demonstrates how to edit the file to enable security.
- Extract the files in the XSDeployment.ear file, and then unzip the XSDeploymentWeb.war file.
- Open the objectGrid.xml file and set the securityEnabled attribute to true on the ObjectGrid level. See an example of this attribute in the following example:
<?xml version="1.0" encoding="UTF-8"?> <objectGridConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ibm.com/ws/objectgrid/config ../objectGrid.xsd" xmlns="http://ibm.com/ws/objectgrid/config"> <objectGrids> <objectGrid name="Grid" securityEnabled="true"> <backingMap name="Map1" /> </objectGrid> </objectGrids> </objectGridConfig>
If you have multiple ObjectGrids defined, then set this attribute on each data grid.
- Repackage the XSDeploymentWeb.war and XSDeployment.ear files to include the changes. Name the file XSDeployment_sec.ear so you do not overwrite the original package.
- Uninstall the existing XSDeployment application and install the XSDeployment_sec.ear file. See Lesson 2.4: Install and run the sample for more information about deploying applications.
You enabled security on the ObjectGrid, which also enables authorization on the data grid.
< Previous | Next >