Sorry didnt include that log becuase server was running in "info" level and so wasn't showing anything in the log.
I tweaked it to debug and I found two problems with the server. Someone had once again reverted the hostname to localhost ((volunteers working on this, so things can be a little frustratingly chaotic)). I locked that in to survive reboot in the VM (hopefully that gluu dev box isn't too corrupted by the hostname change I don't know how long they were running it that way). Fortunately not production.
AFter that I was able to find there was a missing comma in my tweak of the discord.js.
This discord.js works in 3.1.6 at the most basic level with Gluu + Discord:
```
/opt/gluu/node/passport/server/auth# cat discord.js
var passport = require('passport');
var DiscordStrategy = require('passport-discord').Strategy;
var setCredentials = function(credentials) {
var callbackURL = global.applicationHost.concat("/passport/auth/discord/callback");
passport.use(new DiscordStrategy({
clientID: credentials.clientID,
clientSecret: credentials.clientSecret,
callbackURL: callbackURL,
profileFields: ['id', 'name', 'displayName', 'email']
},
function(accessToken, refreshToken, profile, done) {
var userProfile = {
id: profile.username || profile.id || "",
name: profile.displayName || profile.username || "",
username: profile.username || "",
email: profile.email || "",
givenName: profile.username || "",
familyName: profile.username || "",
provider: "discord"
};
return done(null, userProfile);
}
));
};
module.exports = {
passport: passport,
setCredentials: setCredentials
};
```
Yay!
So I will close this out, but hopefully this information will help any others trying to get Discord working as well.