Introducing Owin.StatelessAuth with Nancy/Angular demo

added by Robert Greyling
8/6/2014 8:04:49 AM

2 Kicks, 170 Views

If you're writing an API, current thinking is to provide a token in the Authorization header for your app to validate when the request comes in. I have used the Nancy.Authentication.Stateless package in the past for my APIs and even have a demo of it here if you're interested. This is a great package and does a great job but what if one day you want to use SignalR v2 that uses OWIN and you want to validate not just requests to your Nancy app but also the SignalR requests? You're going to need to validate requests as they come in before they get to SignalR or Nancy.


0 comments