Devise Two Factor Authentication 2FA in Rails 7

  Рет қаралды 4,332

Deanin

Deanin

Күн бұрын

Пікірлер: 19
@Damaskeron
@Damaskeron Жыл бұрын
Thank you. This is a very clear and really working instruction. I managed to add it to my program, I just had to update the versions of the components
@YJP-rr6xm
@YJP-rr6xm Жыл бұрын
Many thanks
@rev_krakken70
@rev_krakken70 Жыл бұрын
Hi! Is there any video by you.. where you are building rest api using ruby on rails? I want to know how to integrate react/angular apps with ruby on rails
@Deanin
@Deanin Жыл бұрын
Adding it to my list. There's a few that have covered it with React, but I think I would handle it differently these days. But here's a few videos I have done. Doorkeeper Devise users in React: kzbin.info/www/bejne/gajQZXiaq9Gkntk React SPA: kzbin.info/www/bejne/r6Cve4ugertlpK8 React CRUD API: kzbin.info/www/bejne/kHjRfqSBnJJ2p5Y
@rev_krakken70
@rev_krakken70 Жыл бұрын
@@Deanin thanks a lot 👍
@MalachiRails
@MalachiRails 5 ай бұрын
Insane video. Quite complicated!
@crisnahine1570
@crisnahine1570 5 ай бұрын
mind your own monkey @MalachiRails ! We don't need you here!
@ZilloweZ
@ZilloweZ Жыл бұрын
Hi, can you make a tutorial about making a forum more like reddit with up vote and down vote that actually work, and a comments section that you can reply to a comment and then creating a thread, and with each comment a different unique url, and a home page display recent post, and with user most recent posts, with ability to create forums(subreddit) and without JavaScript at all, I know that's a lot of work, but I appreciate it, and you the only ROR developer that actually makes tutorials that is actually helpful. Thanks a lot for your tutorials.
@Deanin
@Deanin Жыл бұрын
I'll see what I can do, but it might be worth taking a look at a tool that can handle some of this stuff for you like Thredded. kzbin.info/www/bejne/l6WUfGxvdqiAask
@ZilloweZ
@ZilloweZ Жыл бұрын
​@@Deanin I have some questions about Thredded gem, is there a better way that I can talk to you?
@mustafagulzar5516
@mustafagulzar5516 3 ай бұрын
brilliant
@Balabala-iq1ne
@Balabala-iq1ne 4 ай бұрын
the show otp page can be viewed by guest, how to prevent that, because if someone press verify otp without login makes app error
@krzysztofkeczkowski9666
@krzysztofkeczkowski9666 5 ай бұрын
Thanks! :)
@dp2586
@dp2586 Жыл бұрын
I am using default warden.authenticate from devise the remember_me and lockable feature working. But using custom warden authenticate from this video make feature remember_me and lockable account not working. Any solution ?
@naota0
@naota0 2 ай бұрын
Hi @dp2586 Lockable : this is because in the video, he is using `resource && resource.valid_password?(params['user']['password'])` in the custom strategy, so Devise will never perform the lockable strategy. To fix that, just replace the code I mentioned by `resource&.valid_for_authentication? { resource&.valid_password?(params.dig("user", "password")) }`. It will call the method `valid_for_authentification` in the model Lockable and the lockable feature will work again. Rememberable : it is not really an issue. devise-two-factor adds an additional security layer with the OTP. An OTP is a one-time password so, as you know, it is valid only once, for the current session. So, by default, you should not be able to automatically sign in after restarting your browser, since the session has been closed and the last OTP has been consumed. What you can do is that, in your SessionsController#create, add a check `remember_me_is_active?(resource)` (this method is provided by Devise) and, if so, then you can use `bypass_sign_in(resource)` instead of redirecting the user to the OTP page.
@hamitkamberi4134
@hamitkamberi4134 Жыл бұрын
I have a problem while a click the button enable OTP can you help ?
@azizdevfull
@azizdevfull Жыл бұрын
It Fantastic : )
@Deanin
@Deanin Жыл бұрын
Thank you! Always nice to see you here :)
@dc366
@dc366 8 ай бұрын
At 18:46, I added otp_attempt and devise was still complaining about unpermitted params. You have to uncomment the line "before_action :configure_account_update_params, only: [:update]"
Block Users Speedrun With Followability Gem in Rails 7
11:44
Build a Blog with Rails Part 10: Authentication with Devise
20:50
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 70 МЛН
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 124 МЛН
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 38 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 126 МЛН
Ternary Operator in Javascript (Hindi)
6:19
SP Tripathi
Рет қаралды 4
Two Factor Authentication | Node.js & Speakeasy
24:59
Traversy Media
Рет қаралды 81 М.
Two-Factor Authentication (2FA) in Python
12:20
NeuralNine
Рет қаралды 49 М.
Build a React with Ruby on Rails App 2024
57:50
Matt Makes Code
Рет қаралды 1,5 М.
Secure authentication for EVERYTHING! // Authentik
39:50
Christian Lempa
Рет қаралды 185 М.
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 70 МЛН