Rails 4 + RefineryCMS + User registration

226 views
Skip to first unread message

Federico Moretti

unread,
Sep 15, 2015, 4:35:22 PM9/15/15
to Refinery CMS
Hello, I've setup Rails 4 + RefineryCMS using the latest version from github (master branch).

The thing is I want users to be able to register into my system. Not to interact with Refinery, but to be able to do other stuff (not related to CMS).
What I don't understand, is how Refinery uses devise.

- Do I have to use Refinery user model?
- Do I have to create my own user model? Do I have, then, to tell Refinery to use this model?
- Should Refinery and my application use differente user models?

I don't understand what Refinery uses devise for. If I run "rake routes" I can see that all devise routes are handled by Refinery Custom Authentication.
- Am I supposed to use Refinery authentication through my entire application?

I hope I explained my self clearly,
Thanks in advance, please let me know if I need to clarify anything,
Federico.

Philip Arndt

unread,
Sep 15, 2015, 11:43:40 PM9/15/15
to refine...@googlegroups.com
Hey,

As of recently, you can use your own Devise if you remove `refinerycms-authentication-devise` from your Gemfile and implement your own system. You can then tell Refinery to use yours and implement the few methods it requires. If you want to chat with someone about it, you could try https://gitter.im/refinery/refinerycms

Phil

Skip Intro

unread,
May 11, 2016, 5:45:16 AM5/11/16
to Refinery CMS
Is there an option to create separate User model, which will not be overlapped with Refinery::Authentication::Devise::User? For example, I want to use front-end users system with role management using CanCanCan + Canard gems. It seems that patching standard authentication system is too big pain in this case, but I fully satisfied by it in context of admin`s management.
So it would be nice if I can to leave default authentication system for admin`s users management and something separate (probable, new User model based on custom Refinery Extension + new separate devise controllers).

среда, 16 сентября 2015 г., 6:43:40 UTC+3 пользователь parndt написал:
Reply all
Reply to author
Forward
0 new messages