Security role mapping for OSGi application in Rational Application Developer

Technote (FAQ)


This document applies only to the following language version(s):

English, Simplified Chinese

Question

Which tools to allow me to enable the application security settings for an OSGi application in Rational Application Developer?

Cause

There is no OSGi tool support for configuring security role mapping.

You need to map it manually using the administrative console or write scripts to configure the security role mapping.


Answer

Here are the steps on how to set security role and map the role to Users, Groups, or Special Subjects:

Define the security role in the Rational Application Developer as usual in the deployment descriptors.

  • in the web.xml ( for web bundles) using the web.xml editor
  • In the ejb-jar.xml for EJB Bundles
  • In the Blueprint file for ( bean security) using Blueprint Editor.

An example of the security role in the web deployment descriptor (web.xml)

<security-role>
<role-name>REST_CLIENT</role-name>
</security-role>

Deploy the OSGi application to the server.

The security role will be available in the server.

Use the administrative console to map the role to Users , Groups or Special Subjects in the Websphere Application Server.


How to set security for OSGI application is documented in the WebSphere Application Server Infocenter here: http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.osgi.nd.iseries.doc/ae/ta_sec.html
.


Related information

Best practises for developing and working witj OSGI app

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Application Developer for WebSphere Software
Application Deployment

Software version:

8.5, 8.5.1

Operating system(s):

Windows

Software edition:

Enterprise

Reference #:

1574880

Modified date:

2013-03-15

Translate my page

Machine Translation

Content navigation