如何在没有数据库的情况下使用Rails / Devise? [英] How can I use Rails/Devise without a database?

查看:95
本文介绍了如何在没有数据库的情况下使用Rails / Devise?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个不使用数据库的Rails应用程序。相反,该模型是使用包裹旧系统的Ruby API来管理的。

I am creating a Rails app that does not use a database. Instead, the model is managed using a Ruby API that wraps a legacy system.

我有一个Ruby调用,允许我验证用户名/密码组合。在这种情况下,是否可以使用Devise(或其他一些现成的身份验证解决方案)?

I have a Ruby call that will allow me to validate a username/password combination. Is it possible to use Devise (or some other off-the-shelf authentication solution) in this case?

我希望可以覆盖Devise和仍然有很多好处。

My hope is that I can override a few methods in Devise and still get many of the benefits.

Peter。

推荐答案

是可能的。

您可以覆盖默认身份验证,并使用Devise和Warden进行远程服务。

You may override the default authentication and use a remote service with Devise and Warden.

博客帖子为您提供了详细信息:

This blog post gives you details how:

http://4trabes.com/2012/10/31/remote-authentication-with-devise/

让我们知道如何去...

Let us know how it goes...

祝你好运

这篇关于如何在没有数据库的情况下使用Rails / Devise?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆