Closed ivanko2000 closed 8 years ago
Does Thread.CurrentPrinciple work?
Thread.CurrentPrincipal does indeed work. Thank you!
Found a solution for the second part of my question as well [WebApiConfig.Register: config.Filters.Add(new AuthorizeAttribute());]
This is a question; the answer might be obvious, but not to me, since I am a newbie...
I am experimenting with securing the RESTier endpoint with something as simple as Basic Authentication (e.g. using WebApi2 IAuthenticationFilter) and applying a simple filter to an entity set based on the authenticated user (Principal), with little success:
I would appreciate any advice or clarification.