Hello,
I tried to access the User ClaimPrincipal from (Request.OriginalRequest as HttpRequest).HttpContext
from a servicestack service but is empty.
How I can get it populated?
Thanks Gianmaria.
Hello,
I tried to access the User ClaimPrincipal from (Request.OriginalRequest as HttpRequest).HttpContext
from a servicestack service but is empty.
How I can get it populated?
Thanks Gianmaria.
ServiceStack uses a different Auth Model which doesn’t use or populate ClaimPrincipal, whatever external Auth solution you’re using needs to populate it for it to exist on that request.
E.g. it would be populated if your app was configured to use ASP .NET Identity Auth or IdentityServer 4. Whatever external auth solution you use is responsible for populating it.