Authentication basics with Ruby on Rails

  Рет қаралды 13,152

CJ Avilla

CJ Avilla

2 жыл бұрын

In this episode, you'll see how to implement a simple email and password authentication system from scratch. We'll talk about how auth works, but in practice, you should use a gem like devise or another well tested, (ideally open source) tool for authentication. This is only to see how some of the pieces of authentication work.
To see how to install Devise, checkout this other video: • Devise authentication ... .
Code for the episode: github.com/cjavdev/blog-demo
#rails #rubyonrails

Пікірлер: 34
@korayberk54
@korayberk54 Жыл бұрын
I don't know if anyone has ever told you this, but you are really a great teacher and it is so important to have people arround the world like yourself. Keep doing what you are love and know that you are definitely good at it.
@cjav_dev
@cjav_dev Жыл бұрын
Thanks so much for the positivity! Love it.
@morrismenanya9059
@morrismenanya9059 Жыл бұрын
I had to pause the video halfway to say this is the most helpful and informative video I’ve really come across. You’re freaking awesome
@cjav_dev
@cjav_dev Жыл бұрын
Thanks so much for the kind words, Morris!
@wolfebane
@wolfebane Жыл бұрын
Thank you so much for your help. I'm a rails novice working on a project and you broke this all down exceedingly well. Subscribed for sure.
@dencam
@dencam Жыл бұрын
These tutorials have been very helpful to me as a beginner in Ruby. Thank you CJA
@qe8445
@qe8445 2 жыл бұрын
I really appreciate the work you put into these videos, I hope you get a lot of subs.
@cjav_dev
@cjav_dev 2 жыл бұрын
Thanks for the kind words!
@kartikkk4583
@kartikkk4583 Жыл бұрын
Oh man I am in love with you, the way you teach , all doubts cleared , great work man keep it up
@TadesseDev
@TadesseDev Жыл бұрын
I love how you take it step by step. Big fan brother ❤❤
@promverstat
@promverstat 2 жыл бұрын
very detailed and simple, enjoyed
@muhammadaamirkhan9185
@muhammadaamirkhan9185 Жыл бұрын
Thanks that was a great video.
@rishikeshpatil9941
@rishikeshpatil9941 Жыл бұрын
That's what I'm searching for from last week. Thank You man!! Just want to suggest you that please explain logout feature by destroying the session & how to expire cookies automatically after certain time.
@SlainR2
@SlainR2 2 жыл бұрын
wow, impressive vim skills
@cjav_dev
@cjav_dev 2 жыл бұрын
Haha thanks 🙏
@Jeffrey7P
@Jeffrey7P 2 жыл бұрын
Great Vid! Is there a Github repo for this? Thanks in advance!
@andrewkontoh6060
@andrewkontoh6060 2 жыл бұрын
Thanks alot
@kevin9458
@kevin9458 Жыл бұрын
Nice video, what is your terminal theme?
@EnjoytheMents
@EnjoytheMents 2 жыл бұрын
Can u do a video about token based api consuming? Where you need to post to a url to get an bearer token and then connect with the token and auto refresh it?….
@cjav_dev
@cjav_dev 2 жыл бұрын
Yeah totally. Do you have an API in mind that works like this?
@sinchannobita210
@sinchannobita210 2 жыл бұрын
I have a doubt to ask, How and when does the def password=(raw) setter method gets called automatically? Btw it's a great video .
@cjav_dev
@cjav_dev 2 жыл бұрын
Ah yes. This isnt obvious. It’s called when the params are passed from the controller.
@karlaeda902
@karlaeda902 2 жыл бұрын
Hi! Could you please tell what terminal theme you're using in the video?)
@cjav_dev
@cjav_dev 2 жыл бұрын
I use OneDark, but have tweaked it a little
@kartikkk4583
@kartikkk4583 Жыл бұрын
I have a doubt how can we make it so that it checks for password only when we are creating a user and not when updating (i mean it will give options to update all the fields but if i dont update it it should remain same as previous )
@JayJay-ki4mi
@JayJay-ki4mi Жыл бұрын
Could you tell me how you're switching to different files so quickly in vim. I use the telescope plugin, but whatever you're using looks far simpler.
@cjav_dev
@cjav_dev Жыл бұрын
I’m using a plug-in called fzf for the fuzzy finder and nerdtree for the navigation thing.
@JayJay-ki4mi
@JayJay-ki4mi Жыл бұрын
@@cjav_dev ty :)
@augustonunesfarias4062
@augustonunesfarias4062 2 жыл бұрын
hi cj, got a problem in the application controler and application html so my issue is : Couldn't find User without an ID that is happening why cookie of user_id arent showing on browser. Do u know how to fix that? 18:32
@cjav_dev
@cjav_dev 2 жыл бұрын
Is the ID being saved as you expect? One way to test would be to print out the cookie and double check that it’s set as expected
@augustonunesfarias4062
@augustonunesfarias4062 2 жыл бұрын
@@cjav_dev actually I found another issue, devise apparently arent let me sign in
@augustonunesfarias4062
@augustonunesfarias4062 2 жыл бұрын
@@cjav_dev that explain why arent generating a id
@cosenocsibb8144
@cosenocsibb8144 2 жыл бұрын
Where is my comment, dude? It's sad that you've deleted my comment thanking you for the video.
CRUD basics with current_user
19:55
CJ Avilla
Рет қаралды 2 М.
Rails scaffold deepdive
53:50
CJ Avilla
Рет қаралды 5 М.
Which one of them is cooler?😎 @potapova_blog
00:45
Filaretiki
Рет қаралды 10 МЛН
Watermelon Cat?! 🙀 #cat #cute #kitten
00:56
Stocat
Рет қаралды 50 МЛН
Rails 7.1 Authentication From Scratch
44:31
GoRails
Рет қаралды 17 М.
rails devise jwt auth tutorial for rails api only mode
51:46
Dakota Martinez
Рет қаралды 5 М.
Ruby Blocks, Procs, and Lambdas 🦁🐅🐻
25:42
CJ Avilla
Рет қаралды 16 М.
Ruby on Rails #39 Devise Authentication from ZERO
21:39
SupeRails
Рет қаралды 9 М.
Pundit Gem For Authorization In Ruby On Rails 7
21:27
Deanin
Рет қаралды 7 М.
React Native Login with JWT Auth Context
24:59
Simon Grimm
Рет қаралды 49 М.
Devise authentication with Rails 6
15:55
CJ Avilla
Рет қаралды 13 М.
Nobel Super Soda Candy🤤ASMR#shots
0:16
zxr kebo
Рет қаралды 8 МЛН
Sharing is caring- sister love ❤️ #shorts
0:16
Quinn FAM
Рет қаралды 10 МЛН
Final muy increíble 😱
0:46
Juan De Dios Pantoja 2
Рет қаралды 32 МЛН