Forums | Mahara Community

Developers /
Moodle to Mahara SSO, profile images causes problems.

anonymous profile picture
Deleted user
Posts: 2

23 July 2013, 6:32 AM

Would be great if someone could confirm if passing profile images from Moodle to Mahara on SSO is broken.

During the SSO process mahara attempts to retrieve the profile image of the user from Moodle. Unfortunately this method appears to be broken as it is returning an invalid message and stopping. However the user is technically logged in, but it stops on that page and shows an error.

Here is the code where the problem exists:

274 // the fetch_user_image method call is unable to retrieve a valid response.
275 // This appears to a bug that prevents images from being passed from Moodle to Mahara
276 // Wait till future upgrade to retest.
277 if (false) { // $create || $update) {
279 $client->set_method('auth/mnet/auth.php/fetch_user_image')
280 ->add_param($remoteuser->username)
281 ->send($remotewwwroot);

File is /mahara/auth/xmlrpc/lib.php

As you can see we inserted a note and put a (false) so this image doesn't stop the SSO process.

Users can now SSO from Moodle to Mahara, but will have to upload their profile field to Mahara separately.

Kristina Hoeppner's profile picture
Posts: 3866

30 July 2013, 1:16 AM


Can you please state which versions of Mahara and Moodle you are using?




anonymous profile picture
Deleted user
Posts: 2

07 August 2013, 7:39 AM

Hi K,

Moodle 2.3.4+ (Build: 20130222)

Mahara version: 1.5.1 (latest version is 1.7.2)

(Just noticed that we're behind in mahara versions, I'll update before coming back)



3 results