From ddc6bf9e67caf883f0d80191ff41f14ca2256bee Mon Sep 17 00:00:00 2001 From: Markos Gogoulos Date: Mon, 29 Dec 2025 19:36:53 +0200 Subject: [PATCH] wtv --- lti/deep_linking.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lti/deep_linking.py b/lti/deep_linking.py index 0876fbc4..e7e69f8f 100644 --- a/lti/deep_linking.py +++ b/lti/deep_linking.py @@ -203,9 +203,9 @@ class SelectMediaView(View): # Create JWT payload 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) - # Some implementations (like Moodle) may expect both platform_id and client_id - audience = [platform.platform_id, platform.client_id] + # Per LTI spec, aud should be the platform's issuer URL + # Try just the platform URL (some Moodle versions don't accept arrays) + audience = platform.platform_id # Get sub (subject) from original launch sub = message_launch_data.get('sub')