moodle-logstore_xapi
moodle-logstore_xapi copied to clipboard
Allow customization of identifying actors
Description
- Right now, actors can only be identified by the following:
- homePage - Always set to app_url
- name - Either username, or id, depending on a setting.
Both of these are quite limiting. homePage set to app_url makes sense for local accounts, but not for OAuth2 accounts according to the xAPI spec. If a user is accessing Moodle via OAuth2, then the homePage should reflect the OAuth2 issuer, and not Moodle.
In addition, in the specific case of OAuth2 users, but most likely others, both "id" and "username" aren't relevant identifiers for an account. Instead, this should be more freely customizable and include a list of user properties to choose from.

Happy to review PRs, but will be closing this as part of a cleanup/roadmap focus.