Refactored owinContext