passport-linkedin-basic
Version:
Authenticate using userEmail and password for Passport.
43 lines (27 loc) • 969 B
Markdown
using a userEmail or phone number and
password. The strategy requires a `verify` callback, which accepts these
credentials and calls `done` providing a user.
passport.use(new LinkedInBasicAuthStrategy(
async (userEmail, password, done) {
//handle the user requirement here
}
));
Use `passport.authenticate()`, specifying the `'linkedin_basic'` strategy, to
authenticate requests.
For example, as route middleware in an [Express](http://expressjs.com/)
application:
app.post('/login',
passport.authenticate('linkedin_basic', { failureRedirect: '/login' }),
function(req, res) {
res.redirect('/');
});
$ npm install
[ ](http://opensource.org/licenses/MIT)
$ npm install passport-linkedin-basic
The linkedin basic authentication strategy authenticates users