Note: Basic Authentication is only
supported when Application Security is disabled. Basic Authentication
has been deprecated in WebSphere Commerce integration with WebSphere
Portal. It is strongly recommended to migrate to the suggested LTPA
configuration.
See Configuring
WebSphere Portal with WebSphere Commerce for more information.
Basic
authentication is an authentication method that is designed to allow
client programs to provide credentials - in the form of a user name
and password - when making a request. Although the scheme is easily
implemented, it relies on the assumption that the connection between
the client and server computers is secure and can be trusted.
Procedure
- From your WebSphere Commerce machine, create the MVCPortletExt.jar
file for use with the WebSphere Application Server JAAS component:
- Create a copy of Foundation-Portal-Core.jar and name this new
file as MVCPortletExt.jar from the following location:
- WC_installdir/portal/WEB-INF/lib/Foundation-Portal-Core.jar
- WCDE_installdir/portal/WEB-INF/lib/Foundation-Portal-Core.jar
- Modify this new file, MVCPortletExt.jar, to make it contain only
the following class and remove all other contents:
- com.ibm.commerce.foundation.internal.client.portal.modules.MVCPortletLoginModule
- Copy this new file, MVCPortletExt.jar, to the Java_home/lib/ext
directory on your WebSphere Portal machine.
Note: If you
plan to integrate WebSphere Commerce into a WebSphere Portal clustered
environment, copy the MVCPortletExt.jar file to the Java_home/lib/ext
directory of each WebSphere Portal node.
- Open the WebSphere Application Server administrative console:
- Click . From the Java Authentication
and Authorization Service section, select Application
logins.
- Click Portal_LTPA,.
- Select New to create a new module.
- In the Module class name field, type com.ibm.commerce.foundation.internal.client.portal.modules.MVCPortletLoginModule.
Accept the default settings for the remaining fields.
- Select OK to confirm the module settings.
- Save the configuration.
- Click .
Ensure that the scope is set at the node level for a stand alone WebSphere
Portal server, or at the cluster level for a WebSphere Portal clustered
environment.
- Click WP AuthenticationService. Under Additional
Properties select Custom Properties.
- Click New to create new custom properties.
- In the Name field, type authentication.basic.login.target.
- In the Value field, type Portal_LTPA.
- Click OK to confirm the changes.
- Save the configuration.
- Restart the WebSphere Portal Server.