This commit is contained in:
Markos Gogoulos
2025-12-30 19:53:30 +02:00
parent 2e57164831
commit 3deee80dd0

View File

@@ -201,7 +201,8 @@ class SelectMediaView(View):
lti_content_items.append(lti_item) lti_content_items.append(lti_item)
# Create JWT payload # Create JWT payload
tool_issuer = request.build_absolute_uri('/')[:-1] # Use client_id as issuer to avoid "wrong consumer key" errors in Moodle
tool_issuer = platform.client_id
# Per LTI spec, aud should be the platform's issuer URL # Per LTI spec, aud should be the platform's issuer URL
# Try just the platform URL (some Moodle versions don't accept arrays) # Try just the platform URL (some Moodle versions don't accept arrays)