devise_saml_authenticatable
devise_saml_authenticatable copied to clipboard
Multiple models (active_admin)
Hi I created a question on stack overflow about this.
https://stackoverflow.com/questions/44441346/how-can-i-set-up-devise-saml-authenticatable-with-multiple-models
The gist is that I have two models that I want to sign in with but I don't know how to configure that.
I didn't know ActiveAdmin had deep integration with devise like that. What does devise_for :admin_users, ActiveAdmin::Devise.config
do exactly?
Taking ActiveAdmin out of the picture, I'd say that all you'd need is the configure the routes separately using devise_for
each user type, and use authenticate_user!
and authenticate_admin_user!
appropriately.
I found out that some gem code is highly tied to use User
model. I will create some more concrete issues related to this so it can be closed soon