/**
 * Module dependencies.
 */
var querystring = require('querystring')
  , util = require('util')
  , OAuthStrategy = require('passport-oauth').OAuthStrategy;


/**
 * `Strategy` constructor.
 *
 * The Dropbox authentication strategy authenticates requests by delegating to
 * Dropbox 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 Dropbox
 *   - `consumerSecret`  secret used to establish ownership of the consumer key
 *   - `callbackURL`     URL to which Dropbox will redirect the user after obtaining authorization
 *
 * Examples:
 *
 *     passport.use(new DropboxStrategy({
 *         consumerKey: '123-456-789',
 *         consumerSecret: 'shhh-its-a-secret'
 *         callbackURL: 'https://www.example.net/auth/allplayers/callback'
 *       },
 *       function(token, tokenSecret, profile, done) {
 *         User.findOrCreate(..., function (err, user) {
 *           done(err, user);
 *         });
 *       }
 *     ));
 *
 * @param {Object} options
 * @param {Function} verify
 * @api public
 */
function Strategy(options, verify) {
  options = options || {};
  options.requestTokenURL = options.requestTokenURL || 'https://api.allplayers.com/1/oauth/request_token';
  options.accessTokenURL = options.accessTokenURL || 'https://api.allplayers.com/1/oauth/access_token';
  var params = { oauth_callback: options.callbackURL };
  options.userAuthorizationURL = options.userAuthorizationURL || 'https://www.allplayers.com/1/oauth/authorize?' + querystring.stringify(params);
  options.sessionKey = options.sessionKey || 'oauth:allplayers';

  OAuthStrategy.call(this, options, verify);
  this.name = 'allplayers';
}

/**
 * Inherit from `OAuthStrategy`.
 */
util.inherits(Strategy, OAuthStrategy);

/**
 * Retrieve user profile from Dropbox.
 *
 * This function constructs a normalized profile, with the following properties:
 *
 *   - `id`
 *   - `displayName`
 *   - `emails`
 *
 * @param {String} token
 * @param {String} tokenSecret
 * @param {Object} params
 * @param {Function} done
 * @api protected
 */
Strategy.prototype.userProfile = function(token, tokenSecret, params, done) {
  this._oauth.get('https://api.allplayers.com/1/account/info', token, tokenSecret, function (err, body, res) {
    if (err) { return done(err); }
    
    try {
      var json = JSON.parse(body);
      
      var profile = { provider: 'allplayers' };
      profile.id = json.uid
      profile.displayName = json.display_name;
      profile.emails = [{ value: json.email }];
      
      profile._raw = body;
      profile._json = json;
      
      done(null, profile);
    } catch(e) {
      done(e);
    }
  });
}


/**
 * Expose `Strategy`.
 */
module.exports = Strategy;

@@ -197,23 +197,26 @@
 %0A * The 
-Dropbox
+AllPlayers
  authent
@@ -275,23 +275,26 @@
 g to%0A * 
-Dropbox
+AllPlayers
  using t
@@ -671,23 +671,26 @@
 ient to 
-Dropbox
+AllPlayers
 %0A *   - 
@@ -800,23 +800,26 @@
 o which 
-Dropbox
+AllPlayers
  will re
@@ -907,23 +907,26 @@
 use(new 
-Dropbox
+AllPlayers
 Strategy
@@ -1477,35 +1477,35 @@
 URL %7C%7C 'https://
-api
+www
 .allplayers.com/
@@ -1500,26 +1500,24 @@
 players.com/
-1/
 oauth/reques
@@ -1580,35 +1580,35 @@
 URL %7C%7C 'https://
-api
+www
 .allplayers.com/
@@ -1603,26 +1603,24 @@
 players.com/
-1/
 oauth/access
@@ -1777,18 +1777,16 @@
 ers.com/
-1/
 oauth/au
@@ -2090,152 +2090,19 @@
 rom 
-Dropbox.%0A *%0A * This function constructs a normalized profile, with the following properties:%0A *%0A *   - %60id%60%0A *   - %60displayName%60%0A *   - %60emails%60
+AllPlayers.
 %0A *%0A
@@ -2336,19 +2336,19 @@
 https://
-api
+www
 .allplay
@@ -2359,22 +2359,33 @@
 com/
-1/account/info
+api/v1/rest/users/current
 ', t

Update strategy to AllPlayers.com URL's and API.