SSO-out to Moodle: login referred from Moodle fails

Bug #1161861 reported by Jan Behrens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Expired
Undecided
Unassigned

Bug Description

When Mahara is configured for SSO-out to Moodle, Moodle's login link to Mahara is not processed correctly so an error appears.

Mahara is set up as an XMLRPC peer with "We SSO out" and "They auto-create users". Moodle is subscribed to Mahara as SSO Identity Provider and publishes the SSO Service Provider.

On the Moodle login page there is a link to Mahara at the bottom of the page (under "Log in using your account on:"). The link looks like this:
http://localhost/mahara/auth/xmlrpc/jump.php?hostwwwroot=http%3A%2F%2Flocalhost%2Fmoodle&wantsurl=&remoteurl=1

The page this link opens shows a login form. Immediately after you've logged in the following error appears:

"Mahara: Invalid Parameter
A required parameter is missing or malformed
Missing parameter 'wr' and no default supplied"

See also this thread: https://mahara.org/interaction/forum/topic.php?id=4650

Mahara 1.6.3

Tags: mahoodle sso
Jan Behrens (jb3)
summary: - SSO-out to Moodle: wrong referer to Mahara login
+ SSO-out to Moodle: network login referred from Moodle fails
summary: - SSO-out to Moodle: network login referred from Moodle fails
+ SSO-out to Moodle: login referred from Moodle fails
description: updated
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Do you still have this problem happening, Jan?

Changed in mahara:
status: New → Incomplete
Revision history for this message
Jan Behrens (jb3) wrote :

Yes, this problem persists with Mahara 15.10.1 / Moodle 3.0.3.

Let me try to clarify the issue. Assume a Mahara installation at http://localhost/mahara and a Moodle installation at http://localhost/moodle, configured for SSO.

In Mahara the Moodle host is configured as follows:

WWW root: http://localhost/moodle
Site name: Moodle
Application: Moodle
Parent authority: None
SSO direction: We SSO out
Update userinfo on login: No
We auto-create users: No
They auto-create users: Yes
We import content: No

In Moodle the Mahara host is configured as follows:

Site: Mahara
Hostname: http://localhost/mahara
Services:
- SSO (Identity Provider): Subscribe
- SSO (Service Provider): Publish

SSO-out from Mahara to Moodle works well. However, when I access http://localhost/moodle/login/ and click on the "Mahara" link just below "Log in using your account on", I am redirected to: http://localhost/mahara/auth/xmlrpc/jump.php?hostwwwroot=http://localhost/moodle&wantsurl&remoteurl=1
and get this message: "Missing parameter 'wr' and no default supplied".

Looks like 'hostwwwroot' and 'remoteurl' are what should have been 'wr' and 'ins'. We've fixed this locally, but it'd be nice if there was an upstream solution.
Thanks.

Revision history for this message
Jan Behrens (jb3) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Mahara because there has been no activity for 60 days.]

Changed in mahara:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.