Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
linkedin-js-patched
Advanced tools
Readme
Easy peasy linkedin client for connect.
npm install linkedin-js
linkedin-js has two methods.
Params are sent as JSON. Params must contain the token.
See "Granting Member Permissions to Your Application"
var express = require('express')
, linkedin_client = require('linkedin-js')('key', 'secret', 'http://localhost:3003/auth')
, app = express.createServer(
express.cookieParser()
, express.session({ secret: "string" })
);
app.get('/auth', function (req, res) {
// the first time will redirect to linkedin
linkedin_client.getAccessToken(req, res, function (error, token) {
// will enter here when coming back from linkedin
req.session.token = token;
res.render('auth');
}, ['rw_nus', 'r_network'] /*This AccessToken should be granted these member permissions*/);
});
app.post('/message', function (req, res) {
linkedin_client.apiCall('POST', '/people/~/shares',
{
token: {
oauth_token_secret: req.session.token.oauth_token_secret
, oauth_token: req.session.token.oauth_token
}
, share: {
comment: req.param('message')
, visibility: {code: 'anyone'}
}
}
, function (error, result) {
res.render('message_sent');
}
);
});
app.listen(3003);
linkdin is fully tested using testosterone
make
FAQs
Minimalistic linkedin API client
The npm package linkedin-js-patched receives a total of 0 weekly downloads. As such, linkedin-js-patched popularity was classified as not popular.
We found that linkedin-js-patched demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.