Skip to content

Commit

Permalink
fix missing user ID in preview LTI launch (#2567)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmachughes authored Oct 5, 2023
1 parent 24ba53e commit e05361b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sourcecode/proxies/lti/src/services/lti.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ const buildLtiRequest = (
fields.ext_jwt_token = authorization.jwt;
}

if (authorization && authorization.userId) {
fields.ext_user_id = authorization.userId;
}

if (fields.ext_preview === '1' || fields.ext_preview === true) {
fields.ext_preview = 'true';
}
Expand Down

0 comments on commit e05361b

Please sign in to comment.