pylti1.3 icon indicating copy to clipboard operation
pylti1.3 copied to clipboard

Missing Roles Claim

Open carpiodanielj opened this issue 2 years ago • 1 comments

Hi everyone. I'm working with the version 1.7.0 and the folllowing exception is showing in log, causing the application returns "500 Internal Server Error".

1655474968765, raise LtiException('Missing Roles Claim'),ecs/bbdn-uef-python-td/6bd75f20105a41f894ad17736f29fe9e 1655474968765,pylti1p3.exception.LtiException: Missing Roles Claim,ecs/bbdn-uef-python-td/6bd75f20105a41f894ad17736f29fe9e

I've decoded the JWT token and found that attribute "https://purl.imsglobal.org/spec/lti/claim/roles" in JSON has an empty array (check bellow image). In other cases this attribute should contain one item at least, but in this case there is no items and don't know why.

image

Anyone can help me? Please.

carpiodanielj avatar Jul 01 '22 15:07 carpiodanielj

@dmitry-viskov I've sent an email with the possible solution of this issue. Please could you check it and comment.

Thanks in advance.

image

carpiodanielj avatar Jul 05 '22 22:07 carpiodanielj

@carpiodanielj fixed in the new 1.12.0 version: https://pypi.org/project/PyLTI1p3/1.12.0/

dmitry-viskov avatar Sep 10 '22 22:09 dmitry-viskov

Really thank you @dmitry-viskov

carpiodanielj avatar Sep 20 '22 21:09 carpiodanielj