What is a very simple authentication scheme for Sinatra/Rack

后端 未结 4 1304
你的背包
你的背包 2021-01-29 19:57

I am busy porting a very small web app from ASP.NET MVC 2 to Ruby/Sinatra.

In the MVC app, FormsAuthentication.SetAuthCookie was being used to set a persistent cookie wh

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-29 20:53

    I' have found this tutorial and repository with a full example, its working fine for me

    https://sklise.com/2013/03/08/sinatra-warden-auth/

    https://github.com/sklise/sinatra-warden-example

提交回复
热议问题