Closed mzrnsh closed 1 year ago
This is really good and helpful. I think the README is getting a bit crowded. Maybe a Wiki page is better?
Made one https://github.com/mikker/passwordless/wiki/Usage-with-Sidekiq::Web. Thank you @mzrnsh β€οΈπ§‘ππππ
I am using Sidekiq in my Rails project. Since I already implemented authentication via Passwordless, I'd like to keep using Passwordless to protect Sidekiq Web UI, instead of adding another authentication solution, be it basic auth or something else.
Sidekiq docs does not (yet) feature an example for Passwordless, but their restful authentication or sorcery example is pretty close to a working solution. This is how I did it:
Here's my question:
Is this use case interesting enough to add it to Passwordless' README?
It doesn't have to be Sidekiq-specific either: this can be used to protect routes from other engines as well.