Self Hosted Microservice using OWIN, WebApi to authenticate users
 Hi Guys,   This time I created Self Hosted Microservice using OWIN, WebApi to authenticate users, this service will store the authentication token on a file and subsequent requests are compared against the stored token.   Hope you like it.   1) Create a console application as following                         2) Install following packages using Nuget    Microsoft.AspNet.WebApi.OwinSelfHost  Microsoft.Owin  Microsoft.AspNet.Cors   3) Startup.cs    using Microsoft.Owin;  using Microsoft.Owin.Security.OAuth;  using Owin;  using System;  using System.Collections.Generic;  using System.Linq;  using System.Net.Http.Headers;  using System.Text;  using System.Threading.Tasks;  using System.Web.Http;   namespace SelfHosted.MicroService  {      public class Startup      {          // This code configures Web API. The Startup class is specified as a type          // parameter in the WebApp.Start method.        ...