Oracle Application Server Portal Developer Kit (PDK)
Using PDK-Java and mod_osso to Integrate a Partner Application with OracleAS Portal (V2)

Creation Date: October 20, 2003
Status: Version 5
Version: PDK Release 2, (9.0.4.0.2 and later)

Introduction

This document describes how you can use the PDK-Java and mod_osso to integrate a partner application with OracleAS Portal. A partner application is a web based application that shares the same Single Sign-On (SSO) Server as OracleAS Portal for its authentication. This means that when a user is already logged into OracleAS Portal, their identity can be asserted to the partner application without them having to log in again.

For even tighter integration with OracleAS Portal, a partner application can be exposed as a web provider using the PDK-Java, so that it may be accessed from a portlet on a OracleAS Portal page. This document demonstrates this style of integration by looking at an example web application, "Flights of Fancy", and describing how its integration with OracleAS Portal is performed.  The Flights of Fancy application displays a list of flights for a user and provides links to display the details of a flight.

The Flights of Fancy application consists of two pages, a summary page listing a number of flights and a detail page showing details of a specific flight. Clicking of the flight number takes you from the summary page to the detail page. When integrated with OracleAS Portal the summary page is exposed as a portlet and clicking on the flight number in the portlet takes you from the portal to the Flight of Fancy application where the detailed page is displayed without requiring the user to login. This type of link that takes a user from Portal to an application is known as a "deep link".

The above image shows the summary page of the Flight of Fancy Applications.

Related Documents

Installation

This section contains instructions for installing the Flights of Fancy sample partner application.

Note: This sample requires that the JPDK is installed in an OracleAS HTTP Server associated with an OracleAS infrastructure. This may be (but need not necessarily be) the same OracleAS HTTP Server that serves as the mid tier for an OracleAS Portal. For more details on how to associate an OracleAS HTTP Server with an OracleAS Infrastructure, consult the Oracle Application Server Administrator's Guide.

Step 1: Installing and Configuring PDK-Java

Step 2: Configuring mod_osso

Step 3: Registering the Partner Application Provider with OracleAS Portal

Implementation

This section takes a look at how the Flights of Fancy application is implemented.

Source Files

The complete Java source code for this example partner application is included in src.zip in the PDK-Java distribution, under the directory oracle/portal/sample/v2/devguide/partnerApp. The files are:

Background

In a partner application, the application URLs that are considered secure should perform an application specific security check to determine whether a user has been authenticated.  This security checks are performed in two different ways. When the application is being called as a stand alone servlet, perhaps through one of the 'deep links' in the portlet, it is protected by mod_osso, which checks if the user is logged on and if not prompts the user for a username/password. When called as a portlet, the provider does a check to verify that the user is logged on.

The entry point to the "Flights of Fancy" application when it is called from inside the OracleAS Portal is the renderBody() method in the FlightRenderer class. The entry point to the "Flights of Fancy" application from outside the OracleAS Portal is the doGet() method in the PartnerServlet class, which in turn delegates to FlightRenderer.

The class FlightRenderer does most of the work for this sample. In this class there are two main methods which handle requests from OracleAS Portal or a servlet request. The only real difference between these methods is how they extract information from the request. These methods are described below.

process(HttpServletRequest req, HttpServletResponse res) a servlet request

renderBody(PortletRenderRequest pr) an OracleAS Portal request
Revision History:
Revision No Last Update
1.0 January 18, 2002.  First V2 revision.
2.0 March 20, 2002,. Added mod_osso information.
3.0 September 10, 2002, Rewrite this to include just configuration information
4.0 October 31, 2002, Improved mod_osso config instructions
5.0 October 20, 2003, Simplified sample and mod_osso config instructions

Oracle Corporation
World Headquarters
500 Oracle Parkway
Redwood Shores, CA 94065, USA
http://www.oracle.com/
Worldwide Inquiries:
1-800-ORACLE1
Fax 650.506.7200
Copyright and Corporate Info