How can I in wisej pass the principal to the user
In asp I do:
HttpContext.Current.User = myPrincipal;
but when I do this in Wisej it tells me that the Current is null
and in global property Application I don’t see any property to pass the value of the user I am doing my security connecting to a rest.
Application.Current is get in Wisej
HttpContext.Current is available in HTTP requests. In a WebSocket request it’s null and you cannot set the principal identity anyway.
In Program.Main() you will find that HttpContext.Current is not null because the first request is HTTP.
Please login first to submit.