23 Kas 2017 - The key modification was to add the code: // Stop execution of the current page/method - the 401 forces OWIN to kick-in and do its thing .