Skip to content

micklynch/linkedin-oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple LinkedIn OAuth 2.0 Project

Simple weekend project to use LinkedIn Autherization for SSO. This uses the 3 legged OAuth.

It uses NodeJS and Express to set up both the webserver and backend server.

The backend server which handles the operations to get the access_token from LinkedIn and then serve the webserver with user data for whoever logged in.

Environmental variables

You need to set up an .env file with the following details:

CLIENT_ID='Your Client ID'
CLIENT_SECRET='Your Client Secret'
CALLBACK_URL='Your Callback URL'

Details are given on the LinkedIn Documentation on how to get each of these variables.

Start your backend server

You can run the following to start your server.

npm run start

Start your WebServer

You can run the following to start your webserver.

npm run serve

You must change the link in public/index.html to include your CLIENT_ID from LinkedIn.

Once it is up and running, you can visit localhost:8080 and click the link to login using LinkedIn.

About

Simple OAuth project using LinkedIn

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published