Using Grunt, Bower, Gulp, NPM with Visual Studio 2015 for a ASP.NET 4.5 Project

While Liviu Costea’s answer is correct, it still took me quite some time to figure out how it is actually done. So here is my step-by-step guide starting from a new ASP.NET 4.5.2 MVC project. This guide includes client-side package management using bower but does not (yet) cover bundling/grunt/gulp. Step 1 (Create Project) Create a … Read more

Why is my ClaimsIdentity IsAuthenticated always false (for web api Authorize filter)?

The problem is because of a breaking change in .Net 4.5. As explained by this article, simply constructing a claims identity no longer makes it IsAuthenticated return true. Instead, you need to pass some string (doesn’t matter what) into the constructor. So this line in the above code: var claimsIdentity = new ClaimsIdentity( claims ); … Read more