Develop > Presentation layer > WebSphere Commerce integration with WebSphere Portal > WebSphere Commerce Portal development environment > Setup the WebSphere Commerce Portal development environment
Configure basic authentication for WebSphere Portal
Basic Authentication has been deprecated in WebSphere Commerce integration with WebSphere Portal. It is strongly recommended to migrate to the suggested LTPA configuration.
See Configure 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 implemented, it relies on the assumption that the connection between the client and server computers is secure and can be trusted.
Before you begin
- You have installed the WebSphere Commerce sample portal application.
- This task is optional if using LTPA.
Procedure
- From the 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_INSTALL/portal/WEB-INF/lib/Foundation-Portal-Core.jar
- WCDE_INSTALL/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 the WebSphere Portal machine.
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:
- Start the WebSphere Application Server server1. For information refer to .Start and stop WebSphere Application Server and WebSphere Portal.
- Start WebSphere Portal's WebSphere Application Server. For example, WebSphere_Portal.
- Click Security > Global Security . 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 Resources > Resource Environment Providers. Verify 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.
What to do next
Configure the sample portlets.
Related concepts
Single sign-on (SSO) and WebSphere Commerce Portal
Related tasks
Configure basic authentication for WebSphere Commerce
Configure the sample portlets in the server environment
Related reference
WebSphere Commerce portlet samples