I am currently developing a flashcard application using python-django on the server side where I can launch it from moodle as an external tools 'Tool Provider (TP) of Learning Tools Interoperability (LTI) version 1.1', I want to pass grades and custom values from TP back to Moodle LMS version 3.9.
When I launch my application from moodle, here is the information relating to the request received in the server side:
{'oauth_version': '1.0', 'oauth_nonce': '507d631132d9774f5ec94728de8c6faa', 'oauth_timestamp': '1624013991', 'oauth_consumer_key': 'djangoConsultKey','ced ',' data_idres:'ced '2', 'lis_idres:' : {"instanceid": "7", "userid": "2", "typeid": "6", "launchid": 323115609}, "hash": "cacf667303577a6731a59211f6b2c1c1e85f449646f3d74c4ce91b9b25cfdf9a "} ',' lis_outcome_service_url ':' http: //localhost/mod/lti/service.php ',
for testing reasons, i used postman to be able to send a post request with this information above but apparently i get an authentication or token error.
Knowing that lis_result_sourcedid and lis_outcome_service_url should be used, but I don't know how to make use of these parameters in the TP programs.