Oracle9iAS Portal Developer Kit
Installing the Basic Authentication Portlets Using
Oracle Metalink
Using the Basic Authentication feature in PDK-URL
Services, you can portletize the contents of any 3rd party application which is
authenticated using the BASIC Authentication method. It is very similar to
creating a standard External Application portlet with less details and
fewer steps to follow. This article describes how to quickly and
easily setup the Basic Authentication Portlets using Oracle Metalink.
Oracle Metalink Account. Register for/Login to Metalink.
Oracle 9iAS Portal 3.0.9.8.0 or later. Beginning with version 3.0.9.8.0, Oracle9iAS Portal support Basic Authentication.
PDK-URL Services 3.0.9.0.8 or later.
You have already successfully installed the PDK-URL Services Framework and Samples.
You have also reviewed PDK-URL Services Basic Authentication Readme.
Note: This section will update zone.properties. We recommend that you backup this file before making the following changes.
Configuring zone.properties
Stop the Oracle9iAS Portal Http Server.
Open the zone.properties file.
Under the Servlet Aliases section, add the alias that points to the Provider Adapter:
servlet.basicauth.code=oracle.portal.provider.v1.http.HttpProvider
Under the Aliased Servlet Init Parameters section, add the initial arguments needed by the URL Services samples. Make sure to modify the directory to point to the correct location of the provider.xml file.
servlet.basicauth.initArgs=provider_root=D:\urlservices\providers\basic,sessiontimeout=1800000, debuglevel=1
Note: the sessiontimeout must match the session timeout setting located in the zone.properties of your Apache listener. Both settings are specified in milliseconds. Please review the release notes of the JPDK download for more information on these arguments.
Save and close the zone.properties file.
Updating the provider.xml
If you do not need to use a proxy server, remove the following tags.
<proxyInfo class="oracle.portal.provider.v1.http.ProxyInformation">
<httpProxyHost>www-proxy.us.oracle.com</httpProxyHost>
<httpProxyPort>80</httpProxyPort>
</proxyInfo>
<httpsProxyInfo class="oracle.portal.provider.v1.http.ProxyInformation">
<httpsProxyHost>www-proxy.us.oracle.com</httpsProxyHost>
<httpsProxyPort>80</httpsProxyPort>
</httpsProxyInfo>
If you need to use your own proxy server, alter the <httpProxyHost>, <httpProxyPort>, <httpsProxyHost>, and <httpsProxyPort> tags and specify your proxy server and port.
Save and Close the file.
Testing the sample
You can test that you have properly setup the sample by using 9iAS.
Start your Oracle9iAS Portal Http Server.
Execute the sample from the Oracle9iAS Portal Http Server. This refers to the Oracle9iAS Portal Http Server where you configured your sample.
For example: http://myserver.mydomain.com:port/servlets/basicauth
Creating the External Application
You will need to quickly create an external application for PDK-URL Services to map to.
Under the Administer tab, click on Administer External Applications in the Login Server Administration portlet.
Click on Create External Application
Application Name: Basic Auth Metalink App
Login URL: http://metalink.oracle.com/metalink/plsql/kno_main.preDoAdvancedQuery
User Name/ID Field Name: <leave blank>
Password Field Name: <leave blank>
Type of Authentication Used: Basic Authentication
Under the Additional Fields section, fill out the following information:
Field Name Field Value Display to User p_text (checked) p_forums TRUE (unchecked)
Click OK.
Registering the Provider
After setting up the Provider with the Oracle HTTP Server, you must now register the provider with Oracle9iAS Portal before adding the sample portlet(s) to your page.
Under the Administer tab in the Oracle 9iAS Portal homepage, click on Add a Portlet Provider within the portlet called Provider.
Name: MetalinkBasicAuthProvider
Display Name: Metalink Basic Authentication Provider
Timeout: 100
Timeout Message: Basic Auth Provider Timed Out
Implementation Style: Web
Provider Login Frequency: Always
Check the following box: Require session specific information such as session id, user, and login time. This field is relevant only for Web providers.
Register on Remote Nodes: No
URL: http://myserver.mydomain.com:port/servlets/basicauth (replace this with your URL)
Check the following radio button: The user's identity needs to be mapped to a different name in the Web provider's application, and/or the Web provider requires an external application login for establishment of a browser session. If selecting this option, specify the external application ID below.
External Application ID: Basic Auth Metalink App
Proxy: No (As long as no proxy is required to contact the Provider Adapter).
Click OK.
Adding the Portlet to a Page
Revision History:
October 30, 2001