You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would you like to be able to do? Can you provide some examples?
At Show User Page We could add a button Impersonate at the UI. When the button is clicked The current user would be logged out and a new login would be done with the desired user.
How could we go about implementing that?
Add a method Impersonation_enabled? in the User dashboard controller with a default return to false, it can be overridden to true
Can you think of other approaches to the problem?
Instead of having a method on the controller we can use a configuration key.
I am not sure about the approach but I would love to work on it, if there is interest on the feature I can investigate and plan something better.
The text was updated successfully, but these errors were encountered:
I'm not sure about this one. I think that Administrate should be independent from authentication, and users should implement their own. If anything, we should make sure that this is easy to do. I haven't tried integrating with something like Devise or Clearance, so if Administrate doesn't play well with them, that's something we should improve. Then you can use these (or anything else) to implement an impersonation mechanism.
Incidentally, the example app implements an impersonation feature in the "Customers" dashboard. See the action "Become":
Show User Page
We could add a buttonImpersonate
at the UI. When the button is clicked The current user would be logged out and a new login would be done with the desired user.Impersonation_enabled?
in the User dashboard controller with a default return tofalse
, it can be overridden totrue
The text was updated successfully, but these errors were encountered: