@
Valiantiam @overifist @xfrocks
I've just managed to get this working with RocketChat!
It does take some manual editing of code on RocketChat though (I will try and submit it to them for a future patch, if I can figure out how github works!)
Firstly, these are the settings you need (obviously change the URL to match your forum location):
View attachment 160530
In Rocket.Chat, you then need to edit the following file:
/opt/Rocket.Chat/programs/server/packages/rocketchat_custom-oauth.js
(adjust if you've installed it elsewhere)
Go down to about line 254 and add the following in between the other if statements:
JavaScript:
if (identity.user && identity.user.user_id && !identity.id) {
identity.id = identity.user.user_id;
identity.email = identity.user.user_email;
}
So it should look something like:
JavaScript:
if (identity.CharacterID && !identity.id) {
identity.id = identity.CharacterID;
}
if (identity.user && identity.user.user_id && !identity.id) {
identity.id = identity.user.user_id;
identity.email = identity.user.user_email;
}
if (identity.user && identity.user.userid && !identity.id) {
identity.id = identity.user.userid;
identity.email = identity.user.email;
}
Then restart the Rocket.Chat service so it picks up the new file and that should do it!