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.
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.
You can run the following to start your server.
npm run start
You can run the following to start your webserver.
npm run serve
You must change the link in
public/index.html
to include yourCLIENT_ID
from LinkedIn.
Once it is up and running, you can visit localhost:8080
and click the link to login using LinkedIn.