Skip to content
API-University

API-University

APIs your consumers will love

Menu

  • Books
    • All Books
    • Book Club
    • REST
    • REST & GraphQL
    • GraphQL
    • Serverless GraphQL
    • OAuth
    • OpenID Connect
    • Swagger & OpenAPI
    • Webhooks
    • API Architecture
    • Alexa Voice Skills
  • Courses
    • All Video Courses
    • OAuth – Video Course
    • OpenID Connect – Video Course
    • RESTful API Design – Video Course
    • Digital Business with APIs – Video Course
    • Individual Workshops Classroom or Webinar
    • Practical Video Tutorials …
      • OAuth 2.0 Diagrams
      • OAuth at Facebook
      • OAuth at LinkedIn
      • OAuth at Google
      • OAuth at PayPal
  • Blog
    • API-Review
    • API Security
    • API Design
    • API Business
  • Earn
    • API Jobs
    • API Fashion
    • Become a Partner
  • About
    • Newsletter
    • API-University
    • Matthias
  • APIs your consumers will love
    • API Design Overview
    • API Domain Analysis
    • Architectural and Frontend Design
      • REST
      • GraphQL
    • API Prototyping
    • API Implementation
    • API Tools
    • API Security
      • OAuth
      • OpenID Connect
    • API Publication
    • API Evolution & Versioning

Social Login with LinkedIn API and OAuth – Live Coding – Part 2

Social Login allows you to improve convenience for your customers and increase conversion rates for your signups and offerings. Instead of letting users fill in forms, they just need to click to sign in with LinkedIn.

In this video we write node.js code for the redirect endpoint and code for getting an OAuth access token. It integrates with the code we have written in part 1. We deploy it as AWS Lamda Function behind the AWS API Gateway.


Don’t miss any upcoming episode and subscribe to the API-University channel on youtube.

This is the second part of a 3-part series on social login:

  • Social Login Part 1: Write code to call the LinkedIn APIs to get profile and email data.
  • Social Login Part 2: Write code for the redirect endpoint and code for getting an access token.
  • Social Login Part 3: Write code to push signup information to a mailinglist provider via API.

You might also want to watch: How to use the LinkedIn API and OAuth

In the video, I show you how to write a node.js application that implements the Linkedin OAuth redirect endpoint. We write code for receiving the Authorization code parameter and call the OAuth token endpoint to exchange the Authorization code into an access token. With this dynamically created access token we can then call the LinkedIn APIs (Social Login Part 1). We write the redirect endpoint in node.js as a serverless API, deploy it on AWS Lambda, and protect it by an AWS API Gateway.

I provide the source code for you here. I hope it makes your life much easier because it guides you through the process, and helps you to get all the nitty-gritty details right. Without it, you would probably spend a lot of time reading the documentation or figuring it out by trial and error.

Get the Source Code.
Sign up via LinkedIn or via email below.

OR


Learn about OAuth in a more structured way, with step-by-step guides:

  • Course on OAuth
  • Book on OAuth
  • Books on other API Topics
  • Courses on other API Topics
Social Login with LinkedIn API and OAuth – Live Coding – Part 2

Also published on Medium.

Tagged on: API    API-Review    LinkedIn    Linkedin API    Live Coding    node.js    Social Login    Social Login with LinkedIn    Tutorial
mattbiehl 2020-06-142020-09-16 API-Review, Blog
  • ← Social Login with LinkedIn API and OAuth – Live Coding – Part 1
  • Social Login with LinkedIn API and OAuth – Live Coding – Part 3 →

You May Also Like

Let’s meet at APIDays 2017 (Discount Code Inside)

mattbiehl 2017-08-072017-07-31

Architectural Style for APIs – how to make the choice

mattbiehl 2020-03-032020-03-04
Facebook API Video

How to use the Facebook API and OAuth

mattbiehl 2020-05-192020-09-16

Categories

Recent Posts

  • Podcast: Understanding OAuth
  • How to use the Google API and OAuth.
  • Social Login with LinkedIn API and OAuth – Live Coding – Part 3
  • Social Login with LinkedIn API and OAuth – Live Coding – Part 2
  • Social Login with LinkedIn API and OAuth – Live Coding – Part 1

Tag Cloud

Alexa Amazon API API-Review API Design APIKey API Portal API Security AppSync AWS Book credentials Design Design Thinking Developer Portal Ecosystem Events GraphQL Identity Journey Map JWT LinkedIn Linkedin API Live Coding node.js OAuth OpenID Connect OWASP Pattern REST Review Richardson Security Skill Social Login Social Login with LinkedIn Spotify Spotify API subscriptions Testing Tutorial User Journey Video Voice Webhooks

API-University Series

The API-University Book Series is a modular series of books on API-related topics. Want them all? Join the API-University Book Club and save some money.

Read more
Copyright © 2021 API-University. Powered by WordPress. Theme: Spacious by ThemeGrill.