devise_saml_authenticatable icon indicating copy to clipboard operation
devise_saml_authenticatable copied to clipboard

Multiple models (active_admin)

Open mikevanholst opened this issue 7 years ago • 2 comments

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.

mikevanholst avatar Jun 08 '17 16:06 mikevanholst

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.

adamstegman avatar Jun 13 '17 21:06 adamstegman

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

fedeagripa avatar May 25 '20 14:05 fedeagripa