The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

SSO with multiple domains

Problem description:
We have the situation that our product is whitelabeled on different domains.
... are all hosting the same product/webapp of ours just with different colors etc.

Now if a customer goes to the account page on our webapp on and buys a 'premium' subscription we open foxycart. We use the same store on as on (otherwise it gets way too complicated maintaining everything from shipping logic, over coupons over xml datafeed handling).

The SSO endpoint of course is set to - but the user in this case is not logged in on, he is logged in on --> Meaning he needs to login again and SSO does not work here as expected.

We could still use our endpoint on and check whether the user is logged in on for example - however in order for that to work we would need to know where the user came from when he opened the foxycart checkout.

Do you have an idea how to achive that? Your documentation about the request body of the endpoint call does not mention anything that could help here.

We could maybe set a foxycart variable when the checkout is opened with the domain ("came_from"). However how can we retrieve that? We have the fcsid, maybe by using that and make a call to foxycart?
  • fc_adamfc_adam FoxyCart Team

    Good question.

    If you're able to track where the customer has come from as part of their cart session with a hidden session attribute, you can fetch that using the fcsid and a request to the cart from your endpoint. We have an example of doing that in our example PHP SSO endpoint on our wiki: - note the commented out code which shows the cURL request.

    Does that help?
  • hey adam, hopefully. we will try this now. if you don't hear back from us it means it works :)
Sign In or Register to comment.