Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

Get CustommerContext in WebApi

$
0
0

Hi!
I need to get some user info in a commerce project in an ApiController class. This is in a library project, so I will not know what kind of a provider a consuming project will have implemented.
If I understand it corectly, I need to get CustomerContact to get commerce user data.
Problem is I cannot use Current user ID, because it is WebApi.
I can get EpiserverProfile, because I have userName in Request payload, but what about Anonymous users? I would want to get Icart of those users, will that be possible?


Viewing all articles
Browse latest Browse all 6894

Trending Articles