Question

Is there a way to recreate WCToken and WCTrustedToken in websphere commerce by using cookies?

Considering a scenario where search and browse uses websphere commerce and checkout in a different technology leveraging REST api's of websphere commerce.

Was it helpful?

Solution 3

FEP 7 which due for release END of Feb-2014 will have this feature supported. While invoking the api just send the cookies along. If cookies are available then no need for WCToken and WCTrusted tokens in header

OTHER TIPS

The WCToken and WCTrustedToken are composed of a subset of the data used to create the USER_ACTIVITY and AUTHENTICATION cookies. It is therefore possible to recreate them from cookies. However, to do so, you would need to use internal WCS APIs. IBM will not support customization that use those APIs.

Note that the commerce team is looking at improving this area in the future to avoid this type of problem.

You can use CommerceTokenHelper OOB class which has the method generateCommerceTokens. This will use the user Id and generate the WcToken and WcTrustedToken.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top