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.
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.