NancyFx/Nancy — pull request #650 by bsommardahl (2012-06-18 02:51:00+00:00)
Title: Added new stateless authentication that can be used in a REST api.

Stateless authentication was missing for me and I kept seeing other people on the web looking for the same thing. I was designing, what I hoped to be, a REST API. I think, by its nature, a REST api would be stateless. Each request should re-authenticate the caller. The existing authentication methods looked like they used cookies or session to hang on to the logged in user from request to request. The new authentication method I have added (StatelessAuthentication) provides exactly what I needed. I also tried to make it flexible enough for anyone else to implement. I patterned much after your FormsAuthentication class with its respective configurer. Cheers.