This commit is contained in:
Markos Gogoulos
2025-12-30 18:12:49 +02:00
parent 2e57164831
commit 9370706097
4 changed files with 39 additions and 5 deletions

View File

@@ -201,7 +201,8 @@ class SelectMediaView(View):
lti_content_items.append(lti_item)
# 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
# Try just the platform URL (some Moodle versions don't accept arrays)