Wiring up a custom authentication method with OWIN in Web API Part 5: abstracting away the auth logic
November 30, 2015 2 Comments
Introduction
In the previous post we built the necessary OWIN components for our custom authentication logic: the middleware and the extension method that’s attached to the IAppBuilder object. We also diverged a little and discussed how to use the Use extension method to inject the necessary objects into the constructor of the middleware class.
In this post we’ll extend PinAuthenticationHandler so that the actual authentication logic can be easily changed.