Laravel Sanctum Google Authentication

Поділитися
Вставка
  • Опубліковано 9 лют 2025

КОМЕНТАРІ • 47

  • @jondoe79
    @jondoe79 11 місяців тому +9

    Druc makes the best practical tutorials, right to the point with no fuss.

  • @MuhammadumarSotvoldiev
    @MuhammadumarSotvoldiev 3 місяці тому +2

    Thank you very much, BRO! Your videos are always exactly what we need!

  • @jamalgaming1649
    @jamalgaming1649 11 місяців тому +1

    You are the channel i've always been looking for! keep up the good work

  • @mhdali2649
    @mhdali2649 11 місяців тому +3

    after selecting mail, the user details getting when using stateless ( $googleUser = Socialite::driver('google')->stateless()->user(); ) this code , but how to login by this in frontend nuxtjs? when doing without stateless ( $googleUser = Socialite::driver('google')->user();) getting error: Session store not set on request when selecting mail account, how to handle this?

    • @nubaysan
      @nubaysan 8 місяців тому

      did you solved this issue?

    • @akomaningemmanuelsunday8424
      @akomaningemmanuelsunday8424 7 місяців тому

      @@nubaysan I was about to ask the same question. were you able to solve this issue ?

  • @JonBrookes
    @JonBrookes 11 місяців тому

    thanks for this, liked and subscribed
    I was looking for this and lo, your excellent video is here on the subject. It looks astonishingly easy to make things like this work on Laravel. You explain it very well. Thank you

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

    Thank you so much. I wasn't sure where i made my mistake

  • @MarlonLCosta
    @MarlonLCosta 11 місяців тому

    best videos! keep this way

  • @thelaitas
    @thelaitas 3 місяці тому

    I love you, man

  • @josiahqt
    @josiahqt День тому

    Thank you so much brooo!

  • @KeganVanSickle
    @KeganVanSickle 5 місяців тому

    Awesome tutorial!

  • @masollano
    @masollano 5 місяців тому +1

    Is this possible on a Laravel as API installation?

  • @nubaysan
    @nubaysan 8 місяців тому

    Hi @cdruc, thanks for this awesome vid. but how can i use this to the token based auth? cause we need token response to the frontend (nuxt)

  • @binaryfire
    @binaryfire 10 місяців тому

    Thanks for these vids! Do you know of a way to disable stateful auth for Sanctum? I've got some apps with Livewire dashboards and some API endpoints that are only supposed to be used with tokens. I want to prevent logged in users from being able to access them using their sessions.

  • @pawew8687
    @pawew8687 10 місяців тому

    Hey, great tutorial, but do you realy need this google_id column? Can you just match record using email?

  • @umahatokula9586
    @umahatokula9586 3 місяці тому

    Can this be used for Google authentication on mobile app?

  • @ahmadghzayel5
    @ahmadghzayel5 4 місяці тому

    can u make a video for handliing this in frontend framework like react

  • @lse1403
    @lse1403 6 місяців тому

    how do I get the values of phone numbers?

  • @hudinigosh7862
    @hudinigosh7862 11 місяців тому

    Bro what theme are you using, eye pleasant.

  • @wizamit
    @wizamit 11 місяців тому

    Could you please create a video on adding Google auth (probably using socialite) in a Passport based auth setup 🥺

  • @Fraps224
    @Fraps224 11 місяців тому

    Thank you!

  • @avdiel6489
    @avdiel6489 5 місяців тому

    thanks friend

  • @ryotakise7686
    @ryotakise7686 11 місяців тому

    great video man, btw what theme extension are you using?

  • @tamash.8683
    @tamash.8683 11 місяців тому

    This is awesome! Any chance you can create one for Microsoft Entra ID? :) Or even with application proxy? That would be really really helpful!

  • @KevinMensah-g6s
    @KevinMensah-g6s 9 місяців тому

    Do i really dont need to hit the /csrf-cookie for this? im trying to implement it but im just getting 401 my stateful domains and session domain is configured properly.

    • @cdruc
      @cdruc  9 місяців тому

      most likely a problem with stateful domains. open the EnsureFrontendRequestsAreStateful middleware, go to the fromFrontend method and log your $domain and $stateful.
      please come back and comment with ur findings 😇

    • @KevinMensah-g6s
      @KevinMensah-g6s 9 місяців тому

      @@cdruc i already did those and added the necessary changes but still got the problem is it okay if i also share the repo.

    • @cdruc
      @cdruc  9 місяців тому

      @@KevinMensah-g6s sure!

    • @cdruc
      @cdruc  9 місяців тому

      @@KevinMensah-g6s I'm genuinely curios what's going on here - please send me the repo 😅

    • @KevinMensah-g6s
      @KevinMensah-g6s 9 місяців тому

      ​@@cdrucgithub = mamawpsg16/laravel-best-practices do you need my exact .env environment for it ?

  • @ФедорЧередниченко-у2с
    @ФедорЧередниченко-у2с 11 місяців тому

    WTF? did as you describe but got error from google when follow "redirect" url.
    Error said that
    Access blocked: Authorization Error

    • @TimKariuki
      @TimKariuki 11 місяців тому

      Language sir! Check that you have a valid Authorized redirect URIs under credentials.

  • @chuongphan3108
    @chuongphan3108 6 місяців тому

    i must login to thank u so muh for this pratice also all your videos about sanctum .. it help me have the overview concept about authorize in laravel .. Keep it up

  • @СергейБобков-б7э
    @СергейБобков-б7э 11 місяців тому

    Thanks

  • @kristoffergonzaga5143
    @kristoffergonzaga5143 2 місяці тому

    Would be a lot better if you can provide a repo :)

  • @zakimdh1070
    @zakimdh1070 6 місяців тому

    Hi, can you pls make a tutorial about how add logoutOtherDevices similar what jetstream have , also when the password updated should keep the active session and logout others , + also when login send that session browser and version , and device name , ip , timestamp to user email , since we use laravel sanctum with breeze api for spa session based, …..
    i hope you see my comment cause i dont want just let ai generate all codes without i understand what i doing ,, thanks i like your tutorials even your explanations is short 😅

  • @RyanMortier
    @RyanMortier 11 місяців тому

    Isn't this what Laravel Socialite does for you?

  • @stursby
    @stursby 11 місяців тому

    Why Nuxt last... JK 😂 Thanks for the great videos!

    • @vagkalosynakis
      @vagkalosynakis 11 місяців тому

      Having worked with Nuxt, it makes sense.