Rails 7.1 Authentication From Scratch

  Рет қаралды 17,061

GoRails

GoRails

9 ай бұрын

► Check out gorails.com for Pro episodes and more!
► SaaS business template for Ruby on Rails with built-in features like Payments, Teams, and much more: jumpstartrails.com
► Ruby on Rails hosting with Hatchbox.io: hatchbox.io
► Learn how to add Stripe Payments (with SCA support!) with Ruby on Rails: courses.gorails.com/payments-...

Пікірлер: 39
@wotok7
@wotok7 6 ай бұрын
Chris congratulations, gorgeous video! As a Ruby on Rails programmer with 10 years of experience, I believe that this video will be used as a demonstration of the power of Ruby on Rails!
@GorailsTV
@GorailsTV 6 ай бұрын
I hope so! It's time that Rails becomes cool again!
@mengyan3214
@mengyan3214 Ай бұрын
Wow, it blows my mind. Need some time to digest. Thank you Chris.
@Norm7264
@Norm7264 9 ай бұрын
Chris you surely are a master of the game!
@taylorkoepp3048
@taylorkoepp3048 8 ай бұрын
Outstanding tutorial, concise, clear and easy to follow.
@GorailsTV
@GorailsTV 8 ай бұрын
Thanks! That means a lot!
@okyerespencer3784
@okyerespencer3784 9 ай бұрын
Great video Chris. Please make another one but in this case the rails would serve as the backend and a react application would communicate with the backend. With all authentication implementation.
@jaspermendiola7420
@jaspermendiola7420 9 ай бұрын
will definitely check this
@anngel_eth
@anngel_eth 8 ай бұрын
Thanks a lot! It's easier than I thought it would be...❤
@gavranhas
@gavranhas 2 ай бұрын
That was great! Thank you for such useful explanation.
@josbexerra8115
@josbexerra8115 4 ай бұрын
Excelente mister chris. muchas gracias
@RiddlerSA
@RiddlerSA 2 ай бұрын
Super useful video! 🔥 I just didn't include devise gem to my new project for the first time.
@danlinar4410
@danlinar4410 9 ай бұрын
Thank you, it is a great update
@excid3
@excid3 9 ай бұрын
Agreed! Some wonderful quality of life improvements in Rails 7.1!
@elmedinador
@elmedinador 5 ай бұрын
Thanks for the very concise and clear example of setting up a login system! It has been way too many years since I had to do it and needed the refresher. Do you also have videos explaining how to effectively test the log in flow and controllers requiring an authenticated user?
@holywalley
@holywalley 8 ай бұрын
Thanks for a great video. I missed one thing. How are those tokens one-time? You use it at least twice (to find user for edit and update actions). At which moment rails revokes them? Or is it only relies on ttl?
@GorailsTV
@GorailsTV 8 ай бұрын
The content returned by the block is embedded in it. When the value changes the token is no longer valid.
@uday4816
@uday4816 7 ай бұрын
Great tutorial. Do you have the code for it somewhere? Will be useful to go through it since the video was filled with new-to-me rails concepts
@Oliver-ic8pi
@Oliver-ic8pi 7 ай бұрын
Awesome tutorial!! Some really nice new features too - what a great time to be a Rails developer. Thanks Chris :) Quick question if you get chance... do you see any advantages for using this over Devise? Obviously Devise is more established and is quicker to implement, but is this any more secure or is there a particular use case for building ourselves? Thanks again!
@GorailsTV
@GorailsTV 7 ай бұрын
Definitely still recommend using Devise. It will get security updates and is battle tested. Your own custom auth will not be unless you hire a security team to audit your code.
@ashishgaur1398
@ashishgaur1398 2 ай бұрын
Hey Chris, thanks for the video. Would request you to please create videos on rspec and selenium. Thanks
@20hair
@20hair 9 ай бұрын
Thank you for the video, I was wondering why don't you use Devise for this?
@GorailsTV
@GorailsTV 9 ай бұрын
We still recommend Devise so the community can provide you security updates. However you might need to build authentication from scratch if you need custom authentication.
@20hair
@20hair 9 ай бұрын
@@GorailsTV Understand, Thank you :)
@archangel0137
@archangel0137 9 ай бұрын
It's because he's trying to teach us how authentication works under the hood. It may also be beneficial to be able to build authentication systems yourself as well. Just out of interest, is there a way of deleting a specific Rails version?
@eduardobenavidez7525
@eduardobenavidez7525 2 ай бұрын
Great video. Thank you Chris! What do you recommend for stateless authentication using Rails 7.1.x ? I'm looking for a JWT gem that works with the latest Rails
@GorailsTV
@GorailsTV 2 ай бұрын
We did a pro episode on JWTs here gorails.com/episodes/jwt-authentication-from-scratch-with-rails
@eduardobenavidez7525
@eduardobenavidez7525 2 ай бұрын
@@GorailsTV Ok, I'll check it out. Thanks!
@giordanodiaz5047
@giordanodiaz5047 4 ай бұрын
Great video, but I have a question: where the reset_session method comes from?
@GorailsTV
@GorailsTV 4 ай бұрын
From Rails
@lucasmedeiros9755
@lucasmedeiros9755 9 ай бұрын
that "generate token for" can be used for a rails api auth? like a jwt
@GorailsTV
@GorailsTV 9 ай бұрын
You'd want to use something else so it can be revoked.
@mikopiko
@mikopiko 9 ай бұрын
WOW
@LawrenceChege
@LawrenceChege 7 ай бұрын
Very resourceful video! Can you do the same to authenticate multiple users with different roles using one login to access the system? Let me know if it's possible.
@GorailsTV
@GorailsTV 7 ай бұрын
I would add roles to the User model (or AccountUser if a user can be part of multiple accounts).
@deepfuchsia7204
@deepfuchsia7204 Ай бұрын
hello frens I'm learning Rails and I heard about the gem called Devise, and the question is whether this autentication from scratch can replace Devise or I still should learn and use Devise? thanks
@GorailsTV
@GorailsTV Ай бұрын
We recommend building it yourself to learn and then using devise for the automatic security updates
@deepfuchsia7204
@deepfuchsia7204 Ай бұрын
@@GorailsTV thanks frend
Rails 7.1 Normalizes
9:56
GoRails
Рет қаралды 2,9 М.
Authentication basics with Ruby on Rails
46:17
CJ Avilla
Рет қаралды 13 М.
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 129 МЛН
Каха ограбил банк
01:00
К-Media
Рет қаралды 9 МЛН
UFC Vegas 93 : Алмабаев VS Джонсон
02:01
Setanta Sports UFC
Рет қаралды 210 М.
React Native Login with JWT Auth Context
24:59
Simon Grimm
Рет қаралды 49 М.
Ruby on Rails: The Documentary
44:16
Honeypot
Рет қаралды 239 М.
Why I Personally Don't Use Ruby On Rails
14:23
Deanin
Рет қаралды 21 М.
Adding Agentic Layers to RAG
19:40
AI User Group
Рет қаралды 14 М.
Authorization on Rails (CanCanCan Demonstration)
12:43
Arachne Tutorials
Рет қаралды 21 М.
Rails World 2023 Opening Keynote - David Heinemeier Hansson
1:02:20
Ruby on Rails
Рет қаралды 78 М.
Better Debugging With The Ruby Debug Gem
26:23
GoRails
Рет қаралды 4,7 М.
5 Secrets to Becoming a Badass Ruby on Rails Developer
28:01
Mix & Go
Рет қаралды 21 М.
Rest API - Best Practices - Design
15:50
High-Performance Programming
Рет қаралды 98 М.
ТОП-5 культовых телефонов‼️
1:00
Pedant.ru
Рет қаралды 21 М.
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 2,9 МЛН
cute mini iphone
0:34
승비니 Seungbini
Рет қаралды 1,4 МЛН
Iphone or nokia
0:15
rishton vines😇
Рет қаралды 1,8 МЛН