Merge pull request #8902 from torgeirl/develop

[NEW] Added support for Dataporten's userid-feide scope
pull/8807/head^2
Rodrigo Nascimento 9 years ago committed by GitHub
commit b44415903f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/rocketchat-custom-oauth/server/custom_oauth_server.js

@ -196,7 +196,11 @@ export class CustomOAuth {
// Fix Dataporten having 'user.userid' instead of 'id'
if (identity.user && identity.user.userid && !identity.id) {
identity.id = identity.user.userid;
if (identity.user.userid_sec && identity.user.userid_sec[0]) {
identity.id = identity.user.userid_sec[0];
} else {
identity.id = identity.user.userid;
}
identity.email = identity.user.email;
}
// Fix for Xenforo [BD]API plugin for 'user.user_id; instead of 'id'

Loading…
Cancel
Save