Ready to get started?

Join Adocasts Plus for $8.00/mo, or sign into your account to get access to all of our lessons.

robot mascot smiling

How To Add Social Authentication with AdonisJS Ally & Google

In this lesson, we'll learn how we can use AdonisJS Ally to add social authentication to our applications. We'll use Google for our demonstration, but this same process also applies to GitHub, Facebook, Discord, LinkedIn, Twitter, & more

Published
Nov 06
Duration
25m 30s

Developer, dog lover, and burrito eater. Currently teaching AdonisJS, a fully featured NodeJS framework, and running Adocasts where I post new lessons weekly. Professionally, I work with JavaScript, .Net C#, and SQL Server.

Adocasts

Burlington, KY

Chapters

00:00 - Creating Our AdonisJS 6 Project
00:51 - Installing & Configuring the AdonisJS Ally Package
01:50 - Understanding the Social Authentication Flow
03:56 - Creating the Social Auth Controller & Routes
05:08 - Redirecting to Google for Social Authentication
05:36 - Handling the Google Callback with the User's Details
05:55 - Checking for Social Authentication Errors
07:55 - Finding or Creating A User Record
13:26 - Logging In the User
13:45 - Displaying Errors & Our Login/Register with Google Form
14:56 - Specifying our Callback URL for Google
16:38 - Database Environment Variables
17:05 - Entering the Google Cloud Console
18:00 - Creating Our Google OAuth Consent Screen
20:45 - Creating Our OAuth 2.0 Google Client ID & Secret
22:20 - Migrating Our Database
22:44 - Testing Our Social Authentication Flow with Google
24:20 - Adding A Logout Form
25:06 - Final Seamless Flow Example

Ready to get started?

Join Adocasts Plus for $8.00/mo, or sign into your account to get access to all of our lessons.

Join The Discussion! (0 Comments)

Please sign in or sign up for free to join in on the dicussion.

robot comment bubble

Be the first to Comment!