OAuth is an open delegated authorization protocol that grants access between websites or apps without exposing user passwords to the parties that have been granted access. It is a very common access delegation used by many companies and websites to identify users with parties such as Google and Facebook that provide OAuth authorization. Let's let our users log in to our app with Google OAuth. This option requires a client ID and a client secret from the Google Developer Console. They can be obtained with the following steps:
-
Create a new project in the Google Developer Console at https://console.developers.google.com/.
-
Select External on the OAuth consent screen tab.
-
Select OAuth client ID from the Create Credentials drop-down options on the Credentials tab, and then select Web application for the Application type.
-
Provide the name of your OAuth client ID in the Name field and the redirect URIs in the Authorized redirect URIs field for Google...