Developer forum

Forum » Development » OCI (Punch out)

OCI (Punch out)

Dennis Schoorl
Reply
We are currently developing an OCI/PunchOut integration for a customer within Dynamicweb, which is functioning as expected from a technical perspective.
However, we are encountering a challenge related to user sessions. In the current setup, the OCI system authenticates using a single shared user account for all users within the customer’s organization. As a result, all users end up sharing the same shopping cart within Dynamicweb.

User authentications are handled in login Notification handlers. How to identify different OCI punchout sessions. Does anyone have an experience with this in combination with Dynamicweb
 

Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Dennis,

We've built this functionality 10 years ago, back in the DW8 years.
We solved the user challenge by creating temporary users upon login. We have a generic user for each company integration. Then, upon login, we create a new user (we copy the master user and give it a username), and the entire session is connected to that temporary user. With large companies, we can sometimes have +100 temporary users, but we clean them up once the session ends.

I hope this helps. If you have any trouble with it, we can set up a call with my colleague, and he can probably explain it better code-wise. 

Adrian

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Check the full cart isolation here

 

https://doc.dynamicweb.dev/manual/dynamicweb10/settings/areas/commerce/advanced/shoppingcart.html

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,
But the cart isolation per browser would be applied to the entire solution, not just for the Punchout cart or a specific Area.

In our case, we have a implemented it as a separate Punchout Website with a separate cart flow, on the same solution. And we could not use it (I believe it was not available in DW8 anyway :) )

Adrian

 

You must be logged in to post in the forum