Devise with Sinatra

前端 未结 4 1324
独厮守ぢ
独厮守ぢ 2021-02-05 07:54

Does anyone had installed Devise gem with Sinatra?

Devise is based on Warden and so it should work on Sinatra, I couldn\'t find any related info about how to implement i

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-05 08:22

    Devise is designed for Rails only. You can't use it with Sinatra.

    You can check out:

    https://github.com/maxjustus/sinatra-authentication

    http://www.gittr.com/index.php/archive/sinatra-basic-authentication-selectively-applied/

    https://gist.github.com/243611

提交回复
热议问题