In our LTI 1.3 tool integration, we use the claim https://purl.imsglobal.org/spec/lti-bo/claim/basicoutcome to extract the userid of the logged-in user which is returned in id_token.
Recently, one of our customer Moodle instance is missing the claim https://purl.imsglobal.org/spec/lti-bo/claim/basicoutcome which is breaking/stopping our tool to render in their Moodle instance. But other Moodle instances are giving the claim in id_token.
"https://purl.imsglobal.org/spec/lti-bo/claim/basicoutcome": {
"lis_result_sourcedid": "{\"data\":{\"instanceid\":\"15\",\"userid\":\"20\",\"typeid\":\"6\",\"launchid\":43372717},\"hash\":\"798ab882edee185066e40de70dd54dcc233068c82958d7c2f2073489c9fe7e11\"}",
"lis_outcome_service_url": "https://moodle.mydomain.com:444/mod/lti/service.php"
}
If the claim is optional, how to get the userid ?