I show you how to write a node.js application for Social Login with LinkedIn. 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. Get the node.js source code: api-university.com/blog/api-u...
In this video, we extend the code we have written in part 1 (see Social Login Part 1 • LinkedIn API and OAuth... ) and implement 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 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.
Learn about APIs and API Security in a more structured way, with step-by-step guides:
🎥 Video Course on API Security with OAuth: api-university.com/courses/oa...
🎥 Video Course on RESTful API Design: api-university.com/courses/re...
🎥 Video Courses on other API Topics: api-university.com/courses/
📗 Book on API Security with OAuth: api-university.com/books/oaut...
📗 Book on RESTful API Design: api-university.com/books/api-...
📚 Books on other API Topics: api-university.com/books/ such as API Architecture, OpenID Connect, GraphQL, Webhooks, AWS AppSync, Swagger and Open API, Amazon Alexa
👕 Get your "I ❤️ APIs" Shirt api-university.com/start/fashion
👩💻 Get a better job 💰 in the API space close to you: jobs.api-university.com
Subscribe and follow me on my journey and explore some great APIs. New episodes are airing 🗓️ each Wednesday 18:00 CEST (9:00 PDT)! Don't miss any upcoming episode and subscribe to the api-university channel / @api-university
Contents of this video:
00:00 Overview
1:33 Call the token endpoint: exchange code into access token
3:55 Redirect endpoint: getting the code parameter
8:53 Integrating all the pieces
9:05 Deploy API to AWS Lambda
10:29 Configure AWS API Gateway
12:08 Use the redirect URL
14:33 Test the social login button
15:43 What’s next
Негізгі бет Social Login on LinkedIn with a Serverless API, Node.js, AWS Lambda, AWS API Gateway - Part 2/3
Пікірлер: 18