Should Suspenders ship with an authentication framework? #1346
Replies: 5 comments 7 replies
-
|
This might be a separate issue altogether, but if we do land on supporting this, we should also consider extending the architecture to support teams by default. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, nearly every app needs this |
Beta Was this translation helpful? Give feedback.
-
|
I've recently been using the Rails authentication generator as the basis for email/password and it works nicely. The only thing it's missing is generating tests alongside the implementation and the first time I used it, I implemented some tests and have since taken those with me when I've used it. My feeling is that the only tricky part of authentication is where it interacts with the general product direction, and then I feel like you want something more like a "cookbook" to take solutions from. |
Beta Was this translation helpful? Give feedback.
-
|
I think authentication would be nice to see, but it would interesting to explore if it could be made optional (I'm thinking of how you can skip things with That way suspenders provides an opinionated default, but makes it trivial to omit if the product you're building goes another direction. This could also avoid incurring the cost of maintaining multiple variants by following a sort of progressive-enhancement/graceful-degradation strategy. |
Beta Was this translation helpful? Give feedback.
-
|
I am strongly in support of shipping Devise by default. I've used it on everything I've ever built and it's amazing. It meets the immediate needs of simple user login and switches seamlessly to more complicated authentication schemes when you need it. For example, we started a project with user/password to get it going, and when we were ready to bring in Okta authentication, the effort and diff was minimal. I also like the idea of --skip-authentication that @vburzynski suggested. My personal preference would be to be able to skip auth if I want to, default to Devise if I don't, and have the option for Clearance if I want it instead of Devise. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I think it would be incredibly rare for a project to not need authentication. The challenge is I don't know if this is needed on day 0. Additionally, there is a lot of nuance to the authentication flow (e.g. should all apps require users to confirm their email addresses?). Finally, what framework should we use? We maintain Clearance, but I've advocated we that prefer Devise.
Beta Was this translation helpful? Give feedback.
All reactions