#178

  Рет қаралды 3,406

SupeRails

SupeRails

Күн бұрын

Пікірлер: 35
@SupeRails
@SupeRails 3 ай бұрын
🚨 The updated syntax is to use `bin/rails generate authentication`, not `bin/rails generate sessions`
@julian_handpan
@julian_handpan 3 ай бұрын
Finally! Something that make more sense than fight with JS...
@SupeRails
@SupeRails 3 ай бұрын
In what case are you fighting with JS on authentication?
@julian_handpan
@julian_handpan 3 ай бұрын
@@SupeRails I mean make more sense, since everyone need auth. And JS keeps changing…
@ゆうた-f2o
@ゆうた-f2o 2 ай бұрын
テストするまでは今まで通り自前のログイン機能かdevice使い続けると思うけど新しい認証増えてるのは嬉しい😊
@yaroslavbozhak9107
@yaroslavbozhak9107 3 ай бұрын
Great. Thanks for useful info.
@indigotechtutorials
@indigotechtutorials 3 ай бұрын
Loved this video and I appreciate the tips about using the main branch and getting access to this feature I wonder if there is a good tailwind template or that woudl be a good idea for a new gem
@SupeRails
@SupeRails 3 ай бұрын
There's a place for that! github.com/rails/tailwindcss-rails/issues/382
@haroldpepete
@haroldpepete 3 ай бұрын
great video, do you think apart from basic authentication rails would implement oauth out of thee box?
@SupeRails
@SupeRails 3 ай бұрын
I really really doubt that
@ledockol
@ledockol 3 ай бұрын
Спасибо Ярослав за интересное и познавательное видео.
@SupeRails
@SupeRails 3 ай бұрын
все для вас, дорогі друзі :)
@idreesibrahim5642
@idreesibrahim5642 Ай бұрын
please use following command for now. "bin/rails generate authentication" sessions has swapped with authentication
@SupeRails
@SupeRails Ай бұрын
Right!!!
@hellomynameisbenjaminupton
@hellomynameisbenjaminupton Ай бұрын
Glad I found this comment.. Thanks
@Helisltu
@Helisltu Ай бұрын
Why storing session in cookies is better than storing in session?
@SupeRails
@SupeRails Ай бұрын
@@Helisltu this might explain www.rubanonrails.com/2/cookie-based-authentication-with-rails/20/secure-session#http-only-cookies
@yoyobroker8107
@yoyobroker8107 3 ай бұрын
Hilarious thumbnail 😄 Great video 👍
@SupeRails
@SupeRails 3 ай бұрын
Thanks bro. Although it's a bit misleading. Devise is very good, and it's going nowhere any time soon!
@MidSeasonGroup
@MidSeasonGroup Ай бұрын
@superails please revisit and expound on this built-in feature.
@Pablo-Herrero
@Pablo-Herrero 3 ай бұрын
Is there any good reason to do this? Is the Devise gem dead or troublesome in some way?
@SupeRails
@SupeRails 3 ай бұрын
No, I do not recommend to use this solution! Devise is perfectly good. I recommend Devise!
@hiphopheadninethree
@hiphopheadninethree Ай бұрын
Can you do video on how to handle email verification before allowing access to account
@SupeRails
@SupeRails Ай бұрын
@@hiphopheadninethree if you are using Devise, use Devise confirmable (Episode 41): superails.com/posts/ruby-on-rails-41-devise-confirmable-no-more-users-with-fake-emails If you are using this (rails 8 authentication), try this: railsbytes.com/public/templates/Xg8sMD !! Curently I do not recommend using Rails 8 native authentication in production. It is 💩 comparing to Devise
@NoobCodeSaga
@NoobCodeSaga 3 ай бұрын
Great!
@SupeRails
@SupeRails 3 ай бұрын
To be clear, I do not recommend you to use this new Rails auth generator. Devise is way better!
@stpaquet
@stpaquet 3 ай бұрын
I like to reuse the same conventions as the ones used in Devise. So usually I will have current_user and same for the methods so that I can reuse other gems without any charge (Authorization or Access control for example)
@SupeRails
@SupeRails 3 ай бұрын
I also like the devise naming. But.... I don't recall of any other gems that rely on having methods like "current_user"...?
@stpaquet
@stpaquet 3 ай бұрын
@@SupeRails Pundit is one. Also many examples for Rolify are based on the Devise conventions (unlike Pundit, I do not think that they are enforcing the conventions)
@tofuman9526
@tofuman9526 3 ай бұрын
So what you do for oauth?
@stpaquet
@stpaquet 3 ай бұрын
@@tofuman9526 OAuth2 gem or doorkeeper.
@mikopiko
@mikopiko 3 ай бұрын
Finally!
@SupeRails
@SupeRails 3 ай бұрын
I think we still need to wait a bit for this to be production-ready
@tofuman9526
@tofuman9526 3 ай бұрын
What about OAuth implementation?
@SupeRails
@SupeRails 3 ай бұрын
Check out episode #103 Simple Omniauth without Devise. That's what I use for superails.com/
Ruby on Rails + SQLite with Stephen Margheim
1:22:39
Aaron Francis
Рет қаралды 4 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 124 МЛН
ROSÉ & Bruno Mars - APT. (Official Music Video)
02:54
ROSÉ
Рет қаралды 331 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 2,2 МЛН
Wait for it 😂
00:19
ILYA BORZOV
Рет қаралды 11 МЛН
Stack Overflow stopped caring about developers a long time ago
22:33
Coding with Dee
Рет қаралды 69 М.
Rails Engines in 20 minutes - Chris Oliver
25:52
Ruby Australia
Рет қаралды 245
Rails 8 + QR Codes: Modern Event Check ins
6:55
Rails Quest by Kaleb Lape
Рет қаралды 166
How To Add Impersonation To Rails Authentication Generator
16:11
Rails World 2024 Opening Keynote - David Heinemeier Hansson
1:05:46
Ruby on Rails
Рет қаралды 110 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 124 МЛН