Refactor to allow any provider

In this lesson, we are going to refactor the implementation we have from the last lesson to allow to login with any provider.

What you'll learn

  • How to use wildcard routes
  • Use partial to reuse functionality in multiple views

Social Authentication with Ally

29mins
4 lessons
Intermediate

Ally

Let's get started by first installing Ally.

What you'll learn

  • How to install and configure Ally

In this lesson, we look at how to log in with our first OAuth provider: GitHub.

What you'll learn

  • Create GitHub OAuth app
  • Sign up/in using GitHub

In this lesson, we are going to refactor the implementation we have from the last lesson to allow to login with any provider.

What you'll learn

  • How to use wildcard routes
  • Use partial to reuse functionality in multiple views

Lastly, we look at how to log in with Google and refactor to easily authenticate with multiple providers.

What you'll learn

  • Create Google OAuth client
  • Sign up/in using Google
  • Saving providers in a dedicated table to allow authenticating with multiple providers
Chimezie Enyinnaya

Hi, I'm Chimezie Enyinnaya, your teacher.

I’m a self-taught software developer based in Lagos, Nigeria, with over 8 years of experience. In the last couple of years, I've been doing more teaching because I enjoy sharing my knowledge so that others can benefit from it. Come along as I teach you all I know about AdonisJS, Node.js, and JavaScript at large!

Lesson video (SD)
Lesson video (HD)

No comments yet.