rwth-acis / moodle-data-proxy

3 stars 1 forks source link

Major refactoring #3

Closed Michi03 closed 4 years ago

Michi03 commented 4 years ago

This merge introduces a new class "MoodleStatementGenerator" which acts as a controller between the MoodleDataProxyService thread and the MoodleServiceConnection interfacing with the Moodle API. It does most of the heavy lifting, creating MoodleDataPOJO objects from the retrieved Moodle data, creating xAPI statements from it via calls to the xAPIStatementGenerator, and passing them to the main service.

Furthermore, the user token which is used by the learning-locker-service is now either given by the OIDC-Sub if one is set, or alternatively the base64 encoded email address.