Laravel Socialite Login with Google and Github | Custom Laravel Breeze

Поделиться
HTML-код
  • Опубликовано: 7 фев 2023
  • Here are the steps you need to follow to customize the Laravel Breeze system that supports login with GitHub and Google accounts.
    Laravel tutorial.
    Laravel breeze customization.
    Support me:
    Get the Udemy Course: bit.ly/3SMaeCY
    / laraveller
    Cloudways: www.cloudways.com/en/?id=1107304
    DigitalOqean $200 free: m.do.co/c/35b78d1e88a4
    Follow me:
    Twitter: / laravellercom
    Facebook Page: / 1laravellercom
    Instagram: / laravellercom
    GitHub: github.com/laraveller
    Website:
    Setup VS CODE for Laravel: • How to setup VS Code f...
    Setup Mac for development: • How To Setup New Mac F...
    Laravel API Vue 3 CRUD: • Vue JS CRUD with Larav...
    Laravel REST API: • Laravel Rest API CRUD ...
    Playlists:
    Laravel Splade Tutorial: bit.ly/3j0IfTW
    Laravel Filament Permission: bit.ly/3Gojd8Z
    Vue Authentication: bit.ly/3g7YZHd
    Laravel Inertia Portfolio - bit.ly/3DlxTp5
    Laravel Reddit clone - bit.ly/3UOYS2O
    React tutorial for beginners - bit.ly/3arkqjX
    Laravel Filament Blog - bit.ly/3nWYv74
    Laravel 9 Full Tutorial - bit.ly/3nTiyTR
    Laravel 9 Media Library - bit.ly/3LpJmVr
    Laravel Essentials Full Tutorial - bit.ly/3vplyuC
    Laravel Mail Tutorial - bit.ly/37mJUNh
    Laravel Restaurant Reservation - bit.ly/3Jc5IcG
    Spatie Laravel Permission - bit.ly/3pOsOhN
    Laravel Testing For Beginners - bit.ly/3t1gNq4
    Laravel Roles and Permissions - bit.ly/3gOhM7d
    LARAVEL INERTIA MOVIE APP - bit.ly/3FVMp4Q
    Laravel Livewire Movie App - bit.ly/3s8D6v1
    Laravel Classified Website - bit.ly/3nsFRnb
    Livewire Employees - bit.ly/2ZtIpZY
    Laravel Employees Management - bit.ly/3Gglt14
    Laravel admin panel - bit.ly/3CcX75M

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

  • @tonyxhepaofficial
    @tonyxhepaofficial  Год назад +5

    Laravel Socialite Login with Google and Github | Custom Laravel Breeze

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

    Over a year later and i find this very helpful. thanks.

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

    Excellent tutorial, maybe the best/clearest out there on this topic. Continue !

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

    Fantastic video, thank you for putting this together. It really helped me today 🤘

  • @black-forest-code
    @black-forest-code Год назад

    Thanks for this great tutorial!

  • @fordiquez
    @fordiquez Год назад +10

    If it is necessary to implement authorization through several providers, then it looks more logical to put the provider fields in a separate table, for example, user_socials with hasMany releation from user, in order to allow the user to log in not only with one provider, since now, for example, we only have a github & google provider, but we only allow binding one of them, not both. It is also especially necessary to do this if there are plans to implement the ability to connect social networks in the user profile.
    In addition, I don’t understand the logic of checking whether a user with a provider email exists, since when a user logs in through the provider for the first time, everything goes fine, but it’s enough to log out and try the same action again, he will get an error that this email uses another method for authorization

  • @user-zn7fm1su8x
    @user-zn7fm1su8x Месяц назад

    Awesome work, keep up!

  • @micheldesouza5257
    @micheldesouza5257 6 месяцев назад

    Excellent , simple à comprendre

  • @ebonyandruth
    @ebonyandruth Год назад

    Thanks for this Tutorial; very much needed.😊

  • @krrishhalder
    @krrishhalder 8 месяцев назад +1

    Nice Tutorial, thanks a lot.

  • @Atz22
    @Atz22 10 месяцев назад

    very helpful 🙂

  • @ngounthengos
    @ngounthengos Год назад

    Very helpful. thank you very much/.

  • @MartyLEire
    @MartyLEire Год назад

    Great tutorial. One thing to point out - Github allows you to not have a name and if a user attempts to sign up without one then it will break the logic

  • @mgabitin11
    @mgabitin11 11 месяцев назад

    THAAAAAAAAAAAAAAAANK YOUUUUUUUUUU!

  • @mazharulislam1276
    @mazharulislam1276 11 месяцев назад +1

    great.

  • @user-dq6gj1ek9c
    @user-dq6gj1ek9c Год назад

    ThankYOuSoMuchSir

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

    anyone tried to relogin with same account? wouldn't this if statement which checks existing email be true every time ?

    • @ripunjaykashyap
      @ripunjaykashyap 7 месяцев назад +2

      Yeah... 100%... huge error in the logic... making unnecessarily complicated...

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

      add google_id to users table, check if it exists every time you relogin the same google acc

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

      I thought that logic was making sense here?

  • @meltech6812
    @meltech6812 Год назад

    It is possible to sign in with a diffrerent google accounts?

  • @thanakornboy1129
    @thanakornboy1129 Год назад

    Thank you for this video, Could you please make video Laravel splade + laravel Socailite

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

    In the video, why at the first login, Google and Github will ask the user for approval to provide the corresponding provider's account information for the application for which they are registering an account? And in subsequent registerings by oauth method, providers do not ask for user approval anymore?

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

    How can I use SSO like this for multiple domains? where if i login to domain1, i do not need to login to domain2 because i already login to domain1

  • @MohamedMohamed-wp2hs
    @MohamedMohamed-wp2hs 9 месяцев назад +2

    Why don't you use the API in the video?

  • @bhaidar
    @bhaidar Год назад

    Hey Tony, great video, as usual. Have you managed to connect Laravel/Twitter via Socialite?

  • @genarocomdo
    @genarocomdo 3 месяца назад

    How can I do that not for blade template but Laravel API and React JS?

  • @websers-4402
    @websers-4402 Месяц назад

    there is a problem i think can't update name if we do we can't login with google

  • @erenergul1772
    @erenergul1772 Год назад

    If you can make OneTap Login tutorial. It will be probably unique. I searched a lot and implement also my project but it was difficult to find video or any documents laravel with OneTap Login Google. Still i have few issues. If you can make a video about it. It will be good. Thanks

  • @spicytea3598
    @spicytea3598 Год назад

    I would like to simply authorize the user when the button is clicked again

  • @necipkuruncu
    @necipkuruncu Год назад

    theme?

  • @Ali71
    @Ali71 12 дней назад

    Thanks for this Useful Content!
    Can you please make a video on OneTap Login using JS and Html in laravel 10 jetstream project I have added this traditional Oauth 2 google sign in functionality in this project in my login form but I am trying also to add OneTap Sign with google in this project using the same credentials, even(also I use separate credential for it But I cannot integrate it somehow, I spent 2 weeks and then I Left it there but every time It says token retrieve error and fedcm get() reject with credential not found something like that Please anyone can help me in this regard! I have tried many ways
    I Shall be very grateful to you!
    The only thing I am going to try now is to add columns for token also in this as you have in this video but my simple google login socialite also working fine without token, May be this One Tap Login needs token columns in the table

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

    can you plz provide source code ?

  • @xp0nat
    @xp0nat Год назад

    I have been trying to overcome this error for several days and without success. Laravel\ Socialite\ Two \ InvalidStateException (laravel 10.10.1)
    i do everything like you do, also watched a lot of other videos and info and gpt chat haha, also i created a new clean laravel project and i try to do it here but without success. I do not understand why. i am using docker. I tried github and twitter authorization, the problem is the same. some people say that it may be in the sessions, but as I see you didn’t even change this functionality, and the usual authorization works correctly for me. I look forward to your reply, thanks!

    • @ihzakarunia2408
      @ihzakarunia2408 Год назад

      did you get the solution? its already months for me now, but still didnt get the solution,

    • @xp0nat
      @xp0nat Год назад

      @@ihzakarunia2408 nope :c

    • @mickonflicker2703
      @mickonflicker2703 Год назад

      I've heard the same issue, tried same approaches and no solution yet,

    • @mickonflicker2703
      @mickonflicker2703 Год назад

      I'm gonna try with laravel 9 and see

    • @ihzakarunia2408
      @ihzakarunia2408 Год назад +2

      @@mickonflicker2703 oh yeah already solved it, its only happened in production. I'm using shared hosting with cpanel, and its using ModSecurity and it has something to do with state sent after google redirect. After turned it off, the problem goes away

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

    I ended with ::: Laravel\ Socialite\ Two\ InvalidStateException 😢

  • @spicytea3598
    @spicytea3598 Год назад

    But, what if I have 5 google accounts?