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
Describe the bug
Currently I have Devise Token Auth for my API para of the app. But because configuring devise to work with Active Admin without overlapping with the parent controller of both Devise instances is a nightmare. I went and used Sorcery for the auth on the Rails Admin side.
The problem is that Rails Admin is tightly coupled to Devise for the logout_path. In my specific scenario I do have Devise defined so the code
def logout_path
if defined?(Devise)
scope = Devise::Mapping.find_scope!(_current_user)
begin
main_app.send("destroy_#{scope}_session_path")
rescue StandardError
false
end
elsif main_app.respond_to?(:logout_path)
main_app.logout_path
end
end
```
Will always try to go that way. Leaving me without a way to use my own logout url.
The text was updated successfully, but these errors were encountered:
Describe the bug
Currently I have Devise Token Auth for my API para of the app. But because configuring devise to work with Active Admin without overlapping with the parent controller of both Devise instances is a nightmare. I went and used Sorcery for the auth on the Rails Admin side.
The problem is that Rails Admin is tightly coupled to Devise for the logout_path. In my specific scenario I do have Devise defined so the code
The text was updated successfully, but these errors were encountered: