From 59855ab98c22663a86c78d7997b34ac57d278cf8 Mon Sep 17 00:00:00 2001 From: Giovanni Cimolin da Silva <giovannicimolin@gmail.com> Date: Wed, 21 Apr 2021 10:39:22 -0300 Subject: [PATCH] fix: make `aud` in LTI 1.3 message a plain string. This fixes issues with some tools that assume `aud` as a plaing string even though that doesn't follow https://tools.ietf.org/html/rfc7519#section-4.1.3 --- lti_consumer/lti_1p3/consumer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lti_consumer/lti_1p3/consumer.py b/lti_consumer/lti_1p3/consumer.py index fbc5cc3..bb1efa7 100644 --- a/lti_consumer/lti_1p3/consumer.py +++ b/lti_consumer/lti_1p3/consumer.py @@ -251,9 +251,7 @@ class LtiConsumer1p3: "iss": self.iss, # JWT aud and azp - "aud": [ - self.client_id - ], + "aud": self.client_id, "azp": self.client_id, # LTI Deployment ID Claim: -- GitLab