Rails 7.1 Authentication From Scratch

  Рет қаралды 16,806

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.
@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.
@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!
@gavranhas
@gavranhas 2 ай бұрын
That was great! Thank you for such useful explanation.
@anngel_eth
@anngel_eth 8 ай бұрын
Thanks a lot! It's easier than I thought it would be...❤
@jaspermendiola7420
@jaspermendiola7420 9 ай бұрын
will definitely check this
@RiddlerSA
@RiddlerSA Ай бұрын
Super useful video! 🔥 I just didn't include devise gem to my new project for the first time.
@josbexerra8115
@josbexerra8115 4 ай бұрын
Excelente mister chris. muchas gracias
@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?
@danlinar4410
@danlinar4410 9 ай бұрын
Thank you, it is a great update
@excid3
@excid3 9 ай бұрын
Agreed! Some wonderful quality of life improvements in Rails 7.1!
@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.
@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
@ashishgaur1398
@ashishgaur1398 2 ай бұрын
Hey Chris, thanks for the video. Would request you to please create videos on rspec and selenium. Thanks
@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.
@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 3 ай бұрын
Great video, but I have a question: where the reset_session method comes from?
@GorailsTV
@GorailsTV 3 ай бұрын
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.
@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
@LawrenceChege
@LawrenceChege 6 ай бұрын
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 6 ай бұрын
I would add roles to the User model (or AccountUser if a user can be part of multiple accounts).
@mikopiko
@mikopiko 9 ай бұрын
WOW
Rails 7.1 Normalizes
9:56
GoRails
Рет қаралды 2,9 М.
Rails 7: The Demo
34:15
David Heinemeier Hansson
Рет қаралды 104 М.
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 65 МЛН
TRY NOT TO LAUGH 😂
00:56
Feinxy
Рет қаралды 12 МЛН
Why I Personally Don't Use Ruby On Rails
14:23
Deanin
Рет қаралды 21 М.
Ruby on Rails: The Documentary
44:16
Honeypot
Рет қаралды 238 М.
Authorization on Rails (CanCanCan Demonstration)
12:43
Arachne Tutorials
Рет қаралды 21 М.
React Native Login with JWT Auth Context
24:59
Simon Grimm
Рет қаралды 48 М.
Authentication basics with Ruby on Rails
46:17
CJ Avilla
Рет қаралды 13 М.
How to use Solid Queue in Ruby on Rails
13:24
GoRails
Рет қаралды 5 М.
Rails World 2023 Opening Keynote - David Heinemeier Hansson
1:02:20
Ruby on Rails
Рет қаралды 77 М.
Pundit Gem For Authorization In Ruby On Rails 7
21:27
Deanin
Рет қаралды 7 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 6 МЛН
Mem VPN - в Apple Store
0:30
AndroHack
Рет қаралды 96 М.
iPhone 15 Pro vs Samsung s24🤣 #shorts
0:10
Tech Tonics
Рет қаралды 13 МЛН
Iphone or nokia
0:15
rishton vines😇
Рет қаралды 1,7 МЛН