This commit is contained in:
Markos Gogoulos
2025-12-30 18:33:25 +02:00
parent 2e57164831
commit d3c858173f
2 changed files with 10 additions and 5 deletions

View File

@@ -203,9 +203,8 @@ class SelectMediaView(View):
# Create JWT payload
tool_issuer = request.build_absolute_uri('/')[:-1]
# 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
# Per LTI spec, aud should be the client_id assigned by the platform
audience = platform.client_id
# Get sub (subject) from original launch
sub = message_launch_data.get('sub')