ProCoSys / Bifrost

Application Development Framework promoting good development practices such as CQRS and MVVM (see readme)
http://bifrost.dolittle.com
Other
1 stars 1 forks source link

Extend Web.PrincipalResolver by asking HttpContext as well. #65

Closed bnordli closed 8 years ago

bnordli commented 8 years ago

PrincipalResolver in Web project should first check HttpContext.Current.User, in case the handling of the request has been delegated to another thread.

bnordli commented 8 years ago

The real issue here is actually that UserSecurityActor is asking the static object CurrentPrincipal instead of the more widely used ICanResolvePrincipal in order to find a principal.

CurrentPrincipal should be removed and all usages moved to ICanResolvePrincipal.