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
Laravel Socialite Login with Google and Github | Custom Laravel Breeze
Over a year later and i find this very helpful. thanks.
Excellent tutorial, maybe the best/clearest out there on this topic. Continue !
Fantastic video, thank you for putting this together. It really helped me today 🤘
Thanks for this great tutorial!
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
Awesome work, keep up!
Excellent , simple à comprendre
Thanks for this Tutorial; very much needed.😊
You're welcome 😊
Nice Tutorial, thanks a lot.
You are welcome!
very helpful 🙂
Very helpful. thank you very much/.
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
THAAAAAAAAAAAAAAAANK YOUUUUUUUUUU!
great.
ThankYOuSoMuchSir
anyone tried to relogin with same account? wouldn't this if statement which checks existing email be true every time ?
Yeah... 100%... huge error in the logic... making unnecessarily complicated...
add google_id to users table, check if it exists every time you relogin the same google acc
I thought that logic was making sense here?
It is possible to sign in with a diffrerent google accounts?
Thank you for this video, Could you please make video Laravel splade + laravel Socailite
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?
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
Why don't you use the API in the video?
Hey Tony, great video, as usual. Have you managed to connect Laravel/Twitter via Socialite?
Not yet Bilal. I think is the same.
How can I do that not for blade template but Laravel API and React JS?
there is a problem i think can't update name if we do we can't login with google
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
I would like to simply authorize the user when the button is clicked again
theme?
Phpstorm Material UI, Vscode Aura
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
can you plz provide source code ?
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!
did you get the solution? its already months for me now, but still didnt get the solution,
@@ihzakarunia2408 nope :c
I've heard the same issue, tried same approaches and no solution yet,
I'm gonna try with laravel 9 and see
@@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
I ended with ::: Laravel\ Socialite\ Two\ InvalidStateException 😢
But, what if I have 5 google accounts?