#178

Поділитися
Вставка
  • Опубліковано 5 вер 2024

КОМЕНТАРІ • 27

  • @SupeRails
    @SupeRails  Місяць тому +2

    🚨 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  Місяць тому +2

      In what case are you fighting with JS on authentication?

    • @julian_handpan
      @julian_handpan Місяць тому

      @@SupeRails I mean make more sense, since everyone need auth. And JS keeps changing…

  • @yaroslavbozhak9107
    @yaroslavbozhak9107 Місяць тому +2

    Great. Thanks for useful info.

  • @user-ju2fm4tm9x
    @user-ju2fm4tm9x 14 днів тому

    テストするまでは今まで通り自前のログイン機能かdevice使い続けると思うけど新しい認証増えてるのは嬉しい😊

  • @SupeRails
    @SupeRails  Місяць тому +1

    To be clear, I do not recommend you to use this new Rails auth generator. Devise is way better!

  • @indigotechtutorials
    @indigotechtutorials Місяць тому +1

    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  Місяць тому +1

      There's a place for that! github.com/rails/tailwindcss-rails/issues/382

  • @yoyobroker8107
    @yoyobroker8107 Місяць тому +1

    Hilarious thumbnail 😄
    Great video 👍

    • @SupeRails
      @SupeRails  Місяць тому +1

      Thanks bro. Although it's a bit misleading. Devise is very good, and it's going nowhere any time soon!

  • @ledockol
    @ledockol Місяць тому +1

    Спасибо Ярослав за интересное и познавательное видео.

    • @SupeRails
      @SupeRails  Місяць тому +1

      все для вас, дорогі друзі :)

  • @Pablo-Herrero
    @Pablo-Herrero Місяць тому +2

    Is there any good reason to do this? Is the Devise gem dead or troublesome in some way?

    • @SupeRails
      @SupeRails  Місяць тому +1

      No, I do not recommend to use this solution! Devise is perfectly good. I recommend Devise!

  • @NoobCodeSaga
    @NoobCodeSaga Місяць тому +1

    Great!

  • @haroldpepete
    @haroldpepete Місяць тому +1

    great video, do you think apart from basic authentication rails would implement oauth out of thee box?

    • @SupeRails
      @SupeRails  Місяць тому

      I really really doubt that

  • @mikopiko
    @mikopiko Місяць тому +1

    Finally!

    • @SupeRails
      @SupeRails  Місяць тому

      I think we still need to wait a bit for this to be production-ready

  • @stpaquet
    @stpaquet Місяць тому +1

    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  Місяць тому

      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 Місяць тому +1

      @@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 Місяць тому

      So what you do for oauth?

    • @stpaquet
      @stpaquet Місяць тому

      @@tofuman9526 OAuth2 gem or doorkeeper.

  • @tofuman9526
    @tofuman9526 Місяць тому

    What about OAuth implementation?

    • @SupeRails
      @SupeRails  Місяць тому

      Check out episode #103 Simple Omniauth without Devise. That's what I use for superails.com/