We are running both Canvas and Moodle. I would like to use the "Moodle as LTI provider" capability to allow users that are logged in to Canvas to seamlessly access a course in Moodle.
I have set up the LTI on Canvas and on Moodle. When a user launches the LTI from Canvas, then a new user is created on Moodle with the correct name and email address and with a username that looks like this:
Instead of this, what I want is for the username to be created based on the Canvas username, or if that username already exists in Moodle, to authenticate into the existing user and enrol then onto the relevant Moodle course as per the LTI link.
Does anyone know how I can do this? I have tried to put custom parameters into the Canvas LTI but this is guesswork as I don't know what value Moodle would be looking for (if any).