Ready to get started?

Join Adocasts Plus for $8/mo, or sign into an existing Adocasts Plus 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

Created by
@tomgobich
Published

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

Join the Discussion 0 comments

Create a free account to join in on the discussion
robot comment bubble

Be the first to comment!