In this episode, we walk through the full process of integrating GitHub as a new social authentication provider in our Laravel app, building on all the groundwork we've done so far.
Here's what happens step-by-step:
.env
values.config/services.php
file to include GitHub with the correct credentials.github_id
column to the users table (with a migration), and make sure our User model is set up to allow mass-assignment of this property.Finally, we give it a try: sign in with GitHub, authorize the app, and... success! You can now log in and out with GitHub just as easily as with any other provider we've set up so far.
This episode is a great hands-on guide if you want to see, start to finish, how to properly add another OAuth provider to a Laravel project using Socialite.