canvas-lms/lib/learn_platform
Bence Arpasi d5b0dfa04a Update unified_tool_id automatically from LearnPlatform
LearnPlatform is able to provide each LTI tool with a unified_tool_id.
When the service is configured and enabled the fetch and update is
happening via a background job after each commit on ContextExternalTool
and Lti::ToolConfiguration.

closes: INTEROP-8718
flag=update_unified_tool_id

test plan

Preparation
Run a small server that can accept and log GET requests
Setup config/vault_contents and config/dynamic_settings with your server settings

1.1 Tool
Create a new 1.1 App
Make sure your server got the correct request
If the server returns the right answer {“unified_tool_id”: “foobar”}
Then this value should be persisted in the CET

1.3 Tool
Create a new Developer key
Make sure your server got the correct request
If the server returns the right answer {“unified_tool_id”: “foobar”}
Then this value should be persisted in the Lti::Configuration
Create a new App with this Dev key
There is no more request to the server
Verify the CET has the right unified_tool_id

1.1 Redirect Tool
Create a new 1.1 redirect app
Make sure your server got the correct request including lti_redirect_url with the correct url for redirection

Change-Id: I4f9aa6575a0a80af875765f3ba92f30d8f40aa97
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/353247
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
QA-Review: Xander Moffatt <xmoffatt@instructure.com>
Product-Review: Bence Árpási <bence.arpasi@instructure.com>
2024-07-31 21:34:26 +00:00
..
api.rb Responsive design and interface fix for API 2024-07-16 16:26:25 +00:00
global_api.rb Update unified_tool_id automatically from LearnPlatform 2024-07-31 21:34:26 +00:00