lib/passport-linkedin-token/strategy.js
function LinkedInTokenStrategy(options, verify) {
  options = options || {};
  options.requestTokenURL = options.requestTokenURL || 'https://api.linkedin.com/uas/oauth/requestToken';
  options.accessTokenURL = options.accessTokenURL || 'https://api.linkedin.com/uas/oauth/accessToken';
  options.userAuthorizationURL = options.userAuthorizationURL || 'https://www.linkedin.com/uas/oauth/authenticate';
  options.sessionKey = options.sessionKey || 'oauth:linkedin';


  OAuthStrategy.call(this, options, verify);
  this.name = 'linkedin-token';
  this._profileFields = options.profileFields;
  this._skipExtendedUserProfile = (options.skipExtendedUserProfile === undefined) ? false : options.skipExtendedUserProfile;
}
function LinkedInTokenStrategy(options, verify) {
  options = options || {};
  options.requestTokenURL = options.requestTokenURL || 'https://api.linkedin.com/uas/oauth/requestToken';
  options.accessTokenURL = options.accessTokenURL || 'https://api.linkedin.com/uas/oauth/accessToken';
  options.userAuthorizationURL = options.userAuthorizationURL || 'https://www.linkedin.com/uas/oauth/authenticate';
  options.sessionKey = options.sessionKey || 'oauth:linkedin';


  OAuthStrategy.call(this, options, verify);
  this.name = 'linkedin-token';
  this._profileFields = options.profileFields;
  this._skipExtendedUserProfile = (options.skipExtendedUserProfile === undefined) ? false : options.skipExtendedUserProfile;
}
function LinkedInTokenStrategy ( options , verify ) { options = options || { } ; options . requestTokenURL = options . requestTokenURL || 'https://api.linkedin.com/uas/oauth/requestToken' ; options . accessTokenURL = options . accessTokenURL || 'https://api.linkedin.com/uas/oauth/accessToken' ; options . userAuthorizationURL = options . userAuthorizationURL || 'https://www.linkedin.com/uas/oauth/authenticate' ; options . sessionKey = options . sessionKey || 'oauth:linkedin' ; OAuthStrategy . call ( this , options , verify ) ; this . name = 'linkedin-token' ; this . _profileFields = options . profileFields ; this . _skipExtendedUserProfile = ( options . skipExtendedUserProfile === undefined ) ? false : options . skipExtendedUserProfile ; }
`LinkedInTokenStrategy` constructor.

The LinkedIn authentication strategy authenticates requests by delegating to
LinkedIn using the OAuth protocol.

Applications must supply a `verify` callback which accepts a `token`,
`tokenSecret` and service-specific `profile`, and then calls the `done`
callback supplying a `user`, which should be set to `false` if the
credentials are not valid.  If an exception occured, `err` should be set.

Options:
- `consumerKey`     identifies client to LinkedIn
- `consumerSecret`  secret used to establish ownership of the consumer key

Examples:

passport.use(new LinkedInTokenStrategy({
consumerKey: '123-456-789',
consumerSecret: 'shhh-its-a-secret'
},
function(token, tokenSecret, profile, done) {
User.findOrCreate(..., function (err, user) {
done(err, user);
});
}
));

@param {Object} options
@param {Function} verify
@api public
LinkedInTokenStrategy constructor .