anycable / anycable-rails

AnyCable for Ruby on Rails applications
https://anycable.io
MIT License
495 stars 35 forks source link

Automatically add Devise/Warden middleware #199

Closed palkan closed 2 months ago

palkan commented 4 months ago

Context

For years, we've been telling users to manually configure AnyCable middleware to support Devise authentication: https://docs.anycable.io/rails/authentication?id=devisewarden (usually, it's done via the anycable:setup generator, but still the initializer file is present and need to be maintained).

We can eliminate this step by introspecting the active Gemfile information and adding this middleware automatically if Devise is present.

TODO