Closed rkh closed 13 years ago
HTTP-Auth is covered in the Sinatra FAQ (http://www.sinatrarb.com/faq.html#auth), including how to test it.
There are lots of gems/snippets floating around how to do cookie/session based auth, maybe they could be summarized.
Finally, there is http://github.com/hassox/warden for generic auth solution for Rack based apps.
Yeah, I was referring to covering or mentioning either sinatra_authentication, sinatra_warden and/or just warden.
@karmi There is already an example of Rack::Auth::Basic in the book.
I agreed with rkh, warden is a great authentication tool and would like to see it covered in the book, either through the sinatra_warden extension or just as a rack middleware.
The book could have a section on different ways of authentication. There is more than one solution and I wrote my own because none of the others really fit my needs.
In addition to:
I think omniauth should be covered.
moving this to contrib
One of the questions that come up most on IRC is how to do user authentication. I think this should be covered (at least partially).