Laravel Passport or Sanctum | What is OAuth, & How it Works?

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • After the Laravel Sanctum package was released? Everywhere question was asked that When to use Sanctum and when to use Passport? So, in this video, you will see what is the difference between Laravel Sanctum & Passport package, and which could fit your need.
    𝐒𝐏𝐀 𝐀𝐮𝐭𝐡𝐞𝐧𝐭𝐢𝐜𝐚𝐭𝐢𝐨𝐧 𝐮𝐬𝐢𝐧𝐠 𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐒𝐚𝐧𝐜𝐭𝐮𝐦
    • #1: SPA Authentication...
    𝐀𝐏𝐈 𝐓𝐨𝐤𝐞𝐧 𝐀𝐮𝐭𝐡𝐞𝐧𝐭𝐢𝐜𝐚𝐭𝐢𝐨𝐧 𝐮𝐬𝐢𝐧𝐠 𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐒𝐚𝐧𝐜𝐭𝐮𝐦
    • #2: API Token Authenti...
    𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐏𝐚𝐬𝐬𝐩𝐨𝐫𝐭 𝐀𝐏𝐈 𝐀𝐮𝐭𝐡𝐞𝐧𝐭𝐢𝐜𝐚𝐭𝐢𝐨𝐧
    • Laravel Passport API A...
    #𝟏 - 𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐏𝐚𝐬𝐬𝐩𝐨𝐫𝐭 𝐎𝐀𝐮𝐭𝐡𝟐 𝐒𝐞𝐫𝐯𝐞𝐫 𝐈𝐦𝐩𝐥𝐞𝐦𝐞𝐧𝐭𝐚𝐭𝐢𝐨𝐧
    • #1 - Laravel Passport ...
    #𝟐 - 𝐓𝐨𝐤𝐞𝐧 𝐒𝐜𝐨𝐩𝐞𝐬 𝐢𝐧 𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐏𝐚𝐬𝐬𝐩𝐨𝐫𝐭 𝐎𝐀𝐮𝐭𝐡𝟐
    • #2 - Token Scopes in L...
    #𝟑 - 𝐑𝐞𝐟𝐫𝐞𝐬𝐡 𝐭𝐨𝐤𝐞𝐧𝐬 𝐢𝐧 𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐏𝐚𝐬𝐬𝐩𝐨𝐫𝐭 𝐎𝐀𝐮𝐭𝐡𝟐
    • #3 - Refresh tokens in...
    Also, follow us on:
    𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤: qirolab
    𝐓𝐰𝐢𝐭𝐭𝐞𝐫: / qirolab

Комментарии • 32

  • @QiroLab
    @QiroLab  4 месяца назад

    *Don't get left behind! Try Spec Coder: Supercharge Your Coding with AI!*
    👉 qirolab.com/spec-coder

  • @felakos1568
    @felakos1568 4 месяца назад

    Thank You very much for the simple explanation 🤝

    • @QiroLab
      @QiroLab  4 месяца назад +1

      Glad you like it!

  • @siddharajsinhzala4229
    @siddharajsinhzala4229 4 года назад +1

    May I use sanctum token api and spa auth together? One for admin api and spa for vue app?

  • @muhammadtareen5376
    @muhammadtareen5376 3 года назад +1

    Let's say I need to authenticate a user using another website. I don't need my own authentication system since whenever my application is accessed, I redirect them to the other website. In that case, do I need Sanctum or Passport?

  • @jbarriossandrea
    @jbarriossandrea 3 года назад +2

    Thanks a lot bro, I now know that I have to use Sanctum

  • @prasanthn2
    @prasanthn2 3 года назад +1

    thanks for helping me decide on the proper package for my project.

  • @samtic6214
    @samtic6214 3 года назад +1

    thank you sir, for building react/laravel app must use scantum or passport to make auth .. can't use standard laravel auth ?

  • @ahmedyaghi
    @ahmedyaghi 3 года назад

    easily you can use JWT Auth library
    github.com/tymondesigns/jwt-auth
    the mean idea of using JWT it to check user authorization before reaching the database, I don't know why they store the token in database either sanctum or api_token in users table
    laravel.com/docs/5.8/api-authentication
    Thanks

  • @kid_rz
    @kid_rz 4 года назад

    please create setup laravel environment for linux.

  • @onnew4681
    @onnew4681 2 года назад

    Hello, thanks for your video,itsawesome.
    In my project , the laravel fortify alreadyrhere, at this time i want to combine it with this sanctum for the CRUDapi, is it possible to do that?

    • @QiroLab
      @QiroLab  2 года назад

      Yes, you can

  • @sourovahmad4053
    @sourovahmad4053 2 года назад

    Really thanks a Lot. I was On an Issue with Them long time. You Made Them Easy. 1 Sub +

    • @QiroLab
      @QiroLab  2 года назад

      Glad I could help

  • @403gtfo
    @403gtfo 4 года назад +1

    Thanks mate, appreciate your video.

    • @QiroLab
      @QiroLab  4 года назад

      My pleasure!

  • @softwareEngineerKunwar
    @softwareEngineerKunwar 3 года назад

    Thanks for tutorials. So, can I use laravel sanctum for my laravel8 project with vue3 with multi platform application?

    • @QiroLab
      @QiroLab  3 года назад

      Yes, absolutely

  • @jijeshc
    @jijeshc 3 года назад

    Thanks bro

  • @felexkemboi3275
    @felexkemboi3275 4 года назад

    So does that mean sanctum is better than passport or it depends with how/where you use?

    • @QiroLab
      @QiroLab  4 года назад +1

      It depends on your requirements, Passport provides a full OAuth2 server implementation. If your project need to use OAuth implementation then use Passport. otherwise, the sanctum is a good choice.

    • @felexkemboi3275
      @felexkemboi3275 4 года назад

      @@QiroLab Thank you

    • @QiroLab
      @QiroLab  4 года назад

      You're very welcome!

    • @dontgiveup7301
      @dontgiveup7301 4 года назад

      @@QiroLab sanctum api can be used in mobile application ?

  • @mtzrmzia
    @mtzrmzia 4 года назад

    Snactum dont work with Nuxt Auth Module, so far now i recomend use Passport..Sanctum Will support con NuxtAuthModule V5..
    github.com/nuxt-community/auth-module/issues/737#issuecomment-646885519

  • @tanzimibthesam5861
    @tanzimibthesam5861 4 года назад +2

    Laravel Livewire vs Vue Js Axios?

    • @MahmoudMohsab
      @MahmoudMohsab 4 года назад

      what is Livewire ?

    • @tanzimibthesam5861
      @tanzimibthesam5861 4 года назад

      @@MahmoudMohsab It's a Way to create Single Page Application with Laravel

    • @raavis
      @raavis 4 года назад +1

      If it's a simple SPA, I prefer Laravel Livewire else for all other Vue JS Axios. Alternatively try Nuxt that based on Vue.

    • @namazbekbekarysuly9112
      @namazbekbekarysuly9112 3 года назад +2

      if you know vue, why even consider livewire?
      if your app is not complex and you dont want to learn js, use livewire.

    • @tanzimibthesam5861
      @tanzimibthesam5861 3 года назад

      @@namazbekbekarysuly9112 I know Vue If I am not using SPA I might use lIvewire for making Ajax calls