From 01b061a47bececfd52fd98f3c59ef702473412b6 Mon Sep 17 00:00:00 2001 From: Markos Gogoulos Date: Mon, 29 Dec 2025 19:29:41 +0200 Subject: [PATCH] wtv --- lti/deep_linking.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lti/deep_linking.py b/lti/deep_linking.py index 1e3b4b39..a82e5265 100644 --- a/lti/deep_linking.py +++ b/lti/deep_linking.py @@ -200,7 +200,8 @@ class SelectMediaView(View): tool_issuer = request.build_absolute_uri('/')[:-1] # Per LTI spec, aud should be the platform's issuer URL (or an array with issuer and optionally client_id) - audience = [platform.platform_id] + # Some implementations (like Moodle) may expect both platform_id and client_id + audience = [platform.platform_id, platform.client_id] payload = { 'iss': tool_issuer, # Tool's issuer (MediaCMS URL)