Questions tagged [current-principal]

Question related to the .net Thread implementation about the current principal.

Question related to the .net Thread implementation about the current principal for role-based security.

See also the MSDN about Thread.CurrentPrincipal Property

18 questions
0
votes
0 answers

Async login - best way to backflow current prinicpal

Whats the best way to implement backflow from async calls that modify context or thread variables such as current principal or culture. Modify async flow? E.g. making it magically work as if it was synchronous, how? a) How to deal with Task.Result…
0
votes
0 answers

CurrentPrincipal is null in IErrorHandler.ProvideFault?

I have created a IErrorHandler to handle all Exception in the WCF service. The problem is that as soon as I get to the ProvideFault method the Thread.CurrentPrincipal is null? It is poroperly set in the servicemethod? The…
Banshee
  • 15,434
  • 36
  • 111
  • 198
0
votes
1 answer

Add ClaimsIdentity via OWIN AuthenticationManager.SignIn is not working

I did create custom AuthorizeAttribute that should handle Jwt Bearer token and then create ClaimsIdentity. But when I send request again, anyway I can't see authorized user and must create ClaimsIdentity again and add user to CurrentPricipal again.…
1
2