canvas-lms/doc
Steve McGee 5b09a61f75 send environment specific url in LTI calls
In Beta and Test versions of Canvas, we always want to send
the xxx.beta.instructure.com URL in LTI calls (NRPS, AGS, etc)
instead of the preferred domain.

fixes INTEROP-8102
flag=consistent_ags_ids_based_on_account_principal_domain

test plan:
1. temporarily modify local code for ApplicationController.test_cluster_name
   to return a beta url
2. Launch an LTI 1.3 tool in an assignment context (e.g. create an LTI
   1.3 assignment) and check both the "lineitems" and "lineitem" fields
3. Also check the context_memberships_url (NRPS) from the launch
4. Get an LTI advantage token for your LTI 1.3 tool
   (/api/lti/advantage_token?tool_id=123) and GET the
   /api/lti/courses/2/line_items endpoint, and check the "id" fields
   of the returned results.
5. Post a score to the /courses/123/line_items/456 (etc.) endpoint --
   see the example request from the docs at
   https://canvas.instructure.com/doc/api/score.html --
   and check the the "progress" URL (under content_items) and the
   resultUrl returned.
6. Get the /api/lti/courses/2/line_items/1/results and check the URLs
   in the "id" field and the "scoreOf" field.
7. Get the /api/lti/courses/2/names_and_roles endpoint and check the
   URL in the "id" field.

Change-Id: I21ad34097442283f74dd70b28b1a46fbc8fbcaf8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/320726
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Tucker Mcknight <tmcknight@instructure.com>
QA-Review: Tucker Mcknight <tmcknight@instructure.com>
Product-Review: Alexis Nast <alexis.nast@instructure.com>
2023-07-05 23:29:10 +00:00
..
api send environment specific url in LTI calls 2023-07-05 23:29:10 +00:00
diagrams API doc update for a group assignment override 2013-02-08 11:50:54 -07:00
docker docs: support inst CLI 2023-03-07 16:40:49 +00:00
examples Quiz Stats - Multiple Answers 2014-06-05 09:12:19 +00:00
images Store EULA agreement timestamp 2017-11-02 19:43:35 +00:00
lti_manual set privacy_level on all Lti::ToolConfigurations 2023-06-07 18:17:34 +00:00
styleguide Remove broken/obsolete content from styleguide 2020-05-15 17:47:09 +00:00
yard_plugins Add INTERNAL_TOOL_GUARD to the variable expansion doc generator 2022-10-03 12:47:13 +00:00
DEPRECATION.md api docs: add deprecation functionality + documentation 2018-08-16 18:27:55 +00:00
GraphQL Validation Errors.md graphql: add CreateGroupInSet mutation 2018-11-14 00:49:29 +00:00
detect_n_plus_one_queries.md add prosopite n+1 query detection 2023-03-29 22:34:20 +00:00
high_level.txt remove non-draft-state everything 2014-12-10 17:57:18 +00:00
js_code_coverage.md fix JS job sanity around COVERAGE var 2021-01-27 16:24:14 +00:00
live_events.md kinesis publishing for `internal failure`s 2022-07-28 21:05:44 +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