Ask A Question

Notifications

You’re not receiving notifications from this thread.

Rails 7.1 Authentication From Scratch Discussion

Authentication got a TON of great improvements in Rails 7.1 with authenticate_by, generates_token_for, normalizes, etc. Super duper excited for these things and they should clean up a lot of code. 🎉

Reply

Are you planning on moving away from Devise in JSP?

Reply

Probably at some point in the long-term. It's a huge benefit to have everything handled in Rails instead of Devise's mixture of Rails + Rack / warden that can be harder to customize.

Reply

I totally agree! Rails 7.1's authentication updates are a game-changer. authenticate_by is a lifesaver for cleaner code, and generates_token_for makes things smoother. Can't wait to dive in!

Reply

Great episode.

Reply

This episode is (again) more than excellent! And very useful of course.
See you at RailsWorld Chris.

Reply

Looking forward to meeting you Frank!

Reply

Wonderful

Reply

great work, thanks!

Will there be a follow up episode on email confirmations(you actually started it on user model), remember me function, or auth via github/gmail etc following these methods? Looking forward to have them. cheers

Reply

Question: How does defining helper methods as private methods (11:39) allow those methods to be accessible to views?

Reply

Would you recommend to use in a new app and production? Or stick with Device for awhile?

Reply

Devise will always get security updates applied automatically, so it's generally a good idea to still use it unless you're regularly doing security testing against your application.

Reply

Thoughts on using something like Authentication Zero (https://github.com/lazaronixon/authentication-zero) in lieu of devise?

Reply

Where is the git repo for this?

Reply

Do you still recommend Devise for production? Or are there any other gems you recommend like authentication-zero (which is a different approach to having a library)?

Reply

This episode is (again) more than excellent!

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 81,149+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2024 GoRails, LLC. All rights reserved.