Skip to content

Instantly share code, notes, and snippets.

View benjanderson's full-sized avatar
😀

Ben Anderson benjanderson

😀
View GitHub Profile

Owin Authentication with Web API 2

Using Microsoft.Owin.Security along with .NET Web API 2 for authentication on Single Page Applications.

My example is split up into 2 different projects, API which is WebAPI2 project and MyProj which is a basic MVC that contains primarily only JavaScript/CSS/etc and the startup classes.

API > AccountController.cs

namespace API

{