Identity
Overview
Customers and roles
Getting the current customer
public class MyService
{
private readonly IWorkContext _workContext;
public MyService(IWorkContext workContext)
{
_workContext = workContext;
}
public Customer GetCurrentCustomer()
=> _workContext.CurrentCustomer
}Authentication
External authentication
Last updated
Was this helpful?