Authentication in Laravel (8.x)with OAuth providers

How OAuth Works?

To understand how OAuth works first find out all the actors involved in the process. In an OAuth protocol, there are mainly three actors within a system range often called the OAuth love triangle.

create new OAuth app
enter the details.
client and secret credentials from GitHub
Routes
LoginController to handle the redirect and callback. This is also persisting our users to our database as well.
asking for user permission.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store