I use token authentication for my web API service. But I want to track the created, created data for all records. So I set HttpContext.Current.User and GenericIdentity with userId in my AuthenticationFilter . But I do not want to access the HttpContext from my datalayer, because I think the data layer should not know anything about the HttpContext .
So, are there any recommendations for passing user data through layers without an “HttpContext”?
user5126784
source share