canvas-lms/doc
Evan Battaglia 063b3690e6 LTI: Canvas.masqueradingUser.userId to use 1.3 ID
If launching an LTI 1.3 tool, use an LTI 1.3 user ID for the value of
the $Canvas.masqueradingUser.userId variable substition. Currently, an
LTI 1.1-style user ID is used regardless of the launching LTI tool
version.

flag=none
closes INTEROP-8421

Test plan:
- before checking out this commit:
  - have an LTI 1.1 and LTI 1.3 tool, each with a custom variable with
    "$Canvas.masqueradingUser.userId"
  - masquerade as a different user launch an LTI 1.1 tool
  - note the substituted custom variable value (40 character ID).
- after checking out this commit:
  - unmasqueraded, launch each tool. The custom variable should remain
    unexpanded.
  - masquerade as another user and launch each tool.
    - for LTI 1.1 tools, the variable should be 40 character ID from
      before this commit.
    - for LTI 1.3 tools, the variable should be a UUIDv4 value, equal to
       `myadminuser.lookup_lti_id(context)` in a rails console.

Change-Id: Idde0234a6ae49abdd68231e314442230035c9c96
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/339038
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Alexis Nast <alexis.nast@instructure.com>
Reviewed-by: Ryan Hawkins <ryan.hawkins@instructure.com>
QA-Review: Ryan Hawkins <ryan.hawkins@instructure.com>
2024-02-01 00:29:32 +00:00
..
api LTI: Canvas.masqueradingUser.userId to use 1.3 ID 2024-02-01 00:29:32 +00:00
diagrams
docker Add VSCode devcontainer configuration 2023-10-11 14:57:46 +00:00
examples
images lti manual: adding placements list and screenshots 2024-01-19 14:14:16 +00:00
lti_manual externalContentReady $.trigger() -> postMessage 2024-01-23 17:00:05 +00:00
openapi/lti spec: Add openapi docs for lti/developer_keys endpoint 2024-01-03 23:31:54 +00:00
styleguide Remove broken/obsolete content from styleguide 2020-05-15 17:47:09 +00:00
yard_plugins bundle update rubocop 2023-08-14 16:32:06 +00:00
DEPRECATION.md
GraphQL Validation Errors.md
detect_n_plus_one_queries.md add prosopite n+1 query detection 2023-03-29 22:34:20 +00:00
high_level.txt
js_code_coverage.md fix JS job sanity around COVERAGE var 2021-01-27 16:24:14 +00:00
live_events.md Support NQ Embedded Quiz Assets 2023-10-19 18:23:45 +00:00
profiling_ruby.md speed up pulsar tests 2021-10-05 20:35:26 +00:00
testing_javascript.md updated .coffee-related comments 2023-04-20 17:39:28 +00:00
testing_with_selenium.md tweak doc/testing_with_selenium.md 2023-04-24 16:14:46 +00:00
trace_database_queries.md tweak AR_QUERY_TRACE options 2021-11-19 22:14:42 +00:00
using_guard_rail_in_development.md Bump switchman 2022-03-21 16:05:30 +00:00
working_with_webpack.md fix path for Webpack hook documentation 2023-06-16 06:35:25 +00:00