Thursday, March 1st, 2012

PeopleSoft 9.1 Mobile Inventory: Applying the authentication provider

The PeopleSoft Authentication Provider authenticates a user name and password by connecting to a PeopleSoft Application Server. With successful authentication, the system creates a Principal and Subject, identifying the authorized use of a secure web server session. The system can use this subject to run a secure web session and provide WS-Security parameters for subsequent calls to the PeopleSoft system. So, users will log in with their PeopleSoft account to Mobile Inventory. No need to install and setup a separate Identity Management provider.

In order to setup authentication from Mobile Inventory to PeopleSoft, two files need to be copied from PS_HOME and PS_APP_HOME to Weblogic Server:

  • wlPSFTSecurityProviders.jar (PeopleSoft Authentication Provider)
  • psjoa.jar (PeopleSoft Java Object Adapter)

First you need to copy file

wlPSFTSecurityProviders.jar

from

<PS_APP_HOME>\setup\oracle\adf\MobileInventory

to

<WLS_HOME>\server\lib\mbeantypes

In my case that is c:\apps\Oracle\WLSMobile\wlserver_10.3\server\lib\mbeantypes

 

Second you need to copy file

psjoa.jar

from

<PS_HOME>\web\psjoa

to

<WLS_HOME>\server\lib\PeopleSoft\

In my case that is c:\apps\Oracle\WLSMobile\wlserver_10.3\server\lib\PeopleSoft. Note that the PeopleSoft directory does not exist and needs to be created manually.

After this open file commEnv.cmd in dir C:\apps\Oracle\WLSMobile\wlserver_10.3\common\bin and prepend psjoa.jar to WEBLOGIC_CLASSPATH like

set WEBLOGIC_CLASSPATH=
%WL_HOME%\server\lib\PeopleSoft\psjoa.jar;
%JAVA_HOME%\lib\tools.jar;
%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar;
%FEATURES_DIR%\weblogic.server.modules_10.3.4.0.jar;
%WL_HOME%\server\lib\webservices.jar;
%ANT_HOME%/lib/ant-all.jar;
%ANT_CONTRIB%/lib/ant-contrib.jar

Now open file setDomainEnv.cmd in dir C:\apps\Oracle\WLSMobile\user_projects\domains\mobile_domain\bin and add the following line

set WL_HOME=C:\apps\Oracle\WLSMobile\wlserver_10.3
set PRE_CLASSPATH=%WL_HOME%\server\lib\PeopleSoft\psjoa.jar
for %%i in ("%WL_HOME%") do set WL_HOME=%%~fsi

Now restart the Oracle WebLogic Server and domain to ensure that your changes take affect. Use the stop and start admin server shortcuts from the Windows start menu in the Weblogic Server folder. After the admin server is restarted, open a browser and go to http://localhost:7001/console.

You will first see this screen and after that you will be redirected to the console logon page.

On the logon screen, log in with the weblogic admin user you provided during the installation of Weblogic Server.

On the home page select Security Realms.

Under Realms, select myrealm.

Now select tab Providers and then tab Authentication. Under Authentication Provider,s click on New.

Supply a name for the new Authentication Provider, for example PSFT Provider and choose type SimplePSFTAuthenticator and click on OK.

Click on button Reorder.

Move PSFT Provider to the top and click on OK.

Click on PSFT Provider to access the properties.

On the Common tab, change the Control Flag to SUFFICIENT and click on tab Provider Specific.

Fill in the PeopleSoft Application Server connect string as //server:JSL port and click on Save.

Since I am installing this on the same server as the application server of FSCM, I can refer to the application server as 127.0.0.1. You should fill in the FQDM of the application server. I am installing this as a local sandbox to avoid overhead and networking. For production systems you should install this Mobile Weblogic Server on a dedicated server.

Back on the Providers page, choose Authentication Provider DefaulfAuthenticator.

On the Common tab, change the Control Flag to SUFFICIENT and click on Save.

On the breadcrumbs click on myrealm. Then choose tab Providers and then tab Password Validation. In the Password Validation Providers section choose SystemPasswordValidator.

Change Minimum Password Length from 8 to 2 and change Minimum Number of Non-Alphabetic Characters from 2 to 0 and click on Save.

Restart the admin server to ensure that all the changes take affect.

This concludes the installation of the  authentication provider. In the following post, I will describe how to setup the PeopleSoft Integration Broker and activating the WebServices.

Back to installation overview

 Viewed 917 times by 201 visitors


Category: General / Technical
You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.