Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use Rails/Devise without a database?

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.

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?

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

Peter.

like image 877
spierepf Avatar asked Feb 13 '13 20:02

spierepf


1 Answers

it is possible.

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...

Good luck

like image 79
gef Avatar answered Nov 08 '22 20:11

gef