Laravel Sanctum Google Authentication

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

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

  • @jondoe79
    @jondoe79 9 месяцев назад +9

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

  • @MuhammadumarSotvoldiev
    @MuhammadumarSotvoldiev Месяц назад +2

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

  • @jamalgaming1649
    @jamalgaming1649 9 месяцев назад +1

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

  • @mhdali2649
    @mhdali2649 8 месяцев назад +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 5 месяцев назад

      did you solved this issue?

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

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

  • @JonBrookes
    @JonBrookes 9 месяцев назад

    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

  • @nubaysan
    @nubaysan 5 месяцев назад

    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 8 месяцев назад

    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.

  • @ryotakise7686
    @ryotakise7686 9 месяцев назад

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

  • @pawew8687
    @pawew8687 8 месяцев назад

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

  • @MarlonLCosta
    @MarlonLCosta 9 месяцев назад

    best videos! keep this way

  • @thelaitas
    @thelaitas 23 дня назад

    I love you, man

  • @KeganVanSickle
    @KeganVanSickle 2 месяца назад

    Awesome tutorial!

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

    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

  • @tamash.8683
    @tamash.8683 9 месяцев назад

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

  • @wizamit
    @wizamit 8 месяцев назад

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

  • @hudinigosh7862
    @hudinigosh7862 9 месяцев назад

    Bro what theme are you using, eye pleasant.

  • @masollano
    @masollano 3 месяца назад +1

    Is this possible on a Laravel as API installation?

  • @ФедорЧередниченко-у2с
    @ФедорЧередниченко-у2с 8 месяцев назад

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

    • @TimKariuki
      @TimKariuki 8 месяцев назад

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

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

    how do I get the values of phone numbers?

  • @avdiel6489
    @avdiel6489 2 месяца назад

    thanks friend

  • @umahatokula9586
    @umahatokula9586 Месяц назад

    Can this be used for Google authentication on mobile app?

  • @ahmadg3822
    @ahmadg3822 Месяц назад

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

  • @KevinMensah-g6s
    @KevinMensah-g6s 7 месяцев назад

    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  7 месяцев назад

      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 7 месяцев назад

      @@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  7 месяцев назад

      @@KevinMensah-g6s sure!

    • @cdruc
      @cdruc  7 месяцев назад

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

    • @KevinMensah-g6s
      @KevinMensah-g6s 7 месяцев назад

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

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

    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 😅

  • @Fraps224
    @Fraps224 9 месяцев назад

    Thank you!

  • @RyanMortier
    @RyanMortier 9 месяцев назад

    Isn't this what Laravel Socialite does for you?

  • @СергейБобков-б7э
    @СергейБобков-б7э 9 месяцев назад

    Thanks

  • @stursby
    @stursby 9 месяцев назад

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

    • @vagkalosynakis
      @vagkalosynakis 9 месяцев назад

      Having worked with Nuxt, it makes sense.