code: function clientPasswordStrategy(clientId, clientSecret, done) {
          return models.Client.findOne({slug: clientId}, {withRelated: ['trustedDomains']})
              .then(function then(model) {
                  if (model) {
                      var client = model.toJSON({withRelated: ['trustedDomains']});
                      if (client.status === 'enabled' && client.secret === clientSecret) {
                          return done(null, client);
                      }
                  }
                  return done(null, false);
              });
      }
docs: ClientPasswordStrategy
  
  This strategy is used to authenticate registered OAuth clients.  It is
  employed to protect the `token` endpoint, which consumers use to obtain
  access tokens.  The OAuth 2.0 specification suggests that clients use the
  HTTP Basic scheme to authenticate (not implemented yet).
  Use of the client password strategy is implemented to support ember-simple-auth.