How can I in wisej pass the principal to the user

0
0

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

  • You must to post comments
0
0

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.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.