A simple Passport strategy for LinkedIn OAuth2 that works with lite profile.
Install
npm install passport-linkedin-oauth2
Usage
Register the strategy
var LinkedInStrategy = Strategy; passport;
and then authenticate as:
app;
the login callback:
app;
See this for details on LinkedIn API.
state
param
Auto-handle The state
param is used to prevent CSRF attacks, and is required by the LinkedIn API. You can ask Passport to handle the sending and validating of the state
parameter by passing state: true
as an option to the strategy:
var LinkedInStrategy = Strategy; passport;
and then authenticate as:
app;
Issue Reporting
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.
Author
License
This project is licensed under the MIT license. See the LICENSE file for more info.