Skip to content

Commit

Permalink
Merge pull request #8902 from torgeirl/develop
Browse files Browse the repository at this point in the history
[NEW] Added support for Dataporten's userid-feide scope
  • Loading branch information
rodrigok authored Dec 8, 2017
2 parents 2f2f662 + 5be48fb commit b444159
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b444159

Please sign in to comment.